diff options
67 files changed, 88 insertions, 89 deletions
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 6ba3b1c644d5..6e3fc1518e27 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -112,7 +112,7 @@ void SAL_CALL Connection::release() throw() struct ConnectionGuard { oslInterlockedCount& m_refCount; - ConnectionGuard(oslInterlockedCount& refCount) + explicit ConnectionGuard(oslInterlockedCount& refCount) : m_refCount(refCount) { osl_atomic_increment(&m_refCount); diff --git a/connectivity/source/drivers/firebird/Connection.hxx b/connectivity/source/drivers/firebird/Connection.hxx index 5ce33878a791..1e90581ba755 100644 --- a/connectivity/source/drivers/firebird/Connection.hxx +++ b/connectivity/source/drivers/firebird/Connection.hxx @@ -171,7 +171,7 @@ namespace connectivity OUString transformPreparedStatement(const OUString& _sSQL); public: - Connection(FirebirdDriver* _pDriver); + explicit Connection(FirebirdDriver* _pDriver); virtual ~Connection(); void construct( const ::rtl::OUString& url, diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.hxx b/connectivity/source/drivers/firebird/DatabaseMetaData.hxx index abb4c1d75eaf..fb43242bb9d0 100644 --- a/connectivity/source/drivers/firebird/DatabaseMetaData.hxx +++ b/connectivity/source/drivers/firebird/DatabaseMetaData.hxx @@ -40,7 +40,7 @@ namespace connectivity ::rtl::Reference<Connection> m_pConnection; public: - ODatabaseMetaData(Connection* _pCon); + explicit ODatabaseMetaData(Connection* _pCon); virtual ~ODatabaseMetaData(); // as I mentioned before this interface is really BIG diff --git a/connectivity/source/drivers/firebird/Driver.hxx b/connectivity/source/drivers/firebird/Driver.hxx index d8785e874fd9..34bfb97b5655 100644 --- a/connectivity/source/drivers/firebird/Driver.hxx +++ b/connectivity/source/drivers/firebird/Driver.hxx @@ -63,7 +63,7 @@ namespace connectivity public: - FirebirdDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext); + explicit FirebirdDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext); virtual ~FirebirdDriver(); const css::uno::Reference<css::uno::XComponentContext>& getContext() const { return m_aContext; } diff --git a/connectivity/source/drivers/firebird/Statement.hxx b/connectivity/source/drivers/firebird/Statement.hxx index cf785b612cde..f8673cf4e052 100644 --- a/connectivity/source/drivers/firebird/Statement.hxx +++ b/connectivity/source/drivers/firebird/Statement.hxx @@ -44,7 +44,7 @@ namespace connectivity public: // a constructor, which is required for returning objects: - OStatement( Connection* _pConnection) + explicit OStatement( Connection* _pConnection) : OStatementCommonBase( _pConnection), m_pSqlda(0) {} diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.hxx b/connectivity/source/drivers/firebird/StatementCommonBase.hxx index 8ebbad6251d9..29c4b2860427 100644 --- a/connectivity/source/drivers/firebird/StatementCommonBase.hxx +++ b/connectivity/source/drivers/firebird/StatementCommonBase.hxx @@ -104,7 +104,7 @@ namespace connectivity public: ::cppu::OBroadcastHelper& rBHelper; - OStatementCommonBase(Connection* _pConnection); + explicit OStatementCommonBase(Connection* _pConnection); using OStatementCommonBase_Base::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >; // OComponentHelper diff --git a/connectivity/source/drivers/firebird/User.hxx b/connectivity/source/drivers/firebird/User.hxx index 775cf9c1f604..89133ff5997a 100644 --- a/connectivity/source/drivers/firebird/User.hxx +++ b/connectivity/source/drivers/firebird/User.hxx @@ -29,7 +29,7 @@ namespace connectivity /** * Create a "new" descriptor, which isn't yet in the database. */ - User(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& rConnection); + explicit User(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& rConnection); /** * For a user that already exists in the db. */ @@ -46,4 +46,4 @@ namespace connectivity #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_USER_HXX -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/connectivity/source/drivers/hsqldb/HTerminateListener.hxx b/connectivity/source/drivers/hsqldb/HTerminateListener.hxx index a5424039880c..1eded7b15567 100644 --- a/connectivity/source/drivers/hsqldb/HTerminateListener.hxx +++ b/connectivity/source/drivers/hsqldb/HTerminateListener.hxx @@ -37,7 +37,7 @@ namespace connectivity protected: virtual ~OConnectionController() {m_pDriver = NULL;} public: - OConnectionController(ODriverDelegator* _pDriver) : m_pDriver(_pDriver){} + explicit OConnectionController(ODriverDelegator* _pDriver) : m_pDriver(_pDriver){} // XEventListener virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) diff --git a/connectivity/source/drivers/kab/KCatalog.hxx b/connectivity/source/drivers/kab/KCatalog.hxx index 682f66a8cb35..abcc26fc0974 100644 --- a/connectivity/source/drivers/kab/KCatalog.hxx +++ b/connectivity/source/drivers/kab/KCatalog.hxx @@ -34,7 +34,7 @@ namespace connectivity ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData; // just to make things easier public: - KabCatalog(KabConnection* _pCon); + explicit KabCatalog(KabConnection* _pCon); inline KabConnection* getConnection() const { return m_pConnection; } diff --git a/connectivity/source/drivers/kab/KDatabaseMetaData.hxx b/connectivity/source/drivers/kab/KDatabaseMetaData.hxx index d3de2e4307d2..21c51eb48be6 100644 --- a/connectivity/source/drivers/kab/KDatabaseMetaData.hxx +++ b/connectivity/source/drivers/kab/KDatabaseMetaData.hxx @@ -41,7 +41,7 @@ namespace connectivity public: - KabDatabaseMetaData(KabConnection* _pCon); + explicit KabDatabaseMetaData(KabConnection* _pCon); static const OUString & getAddressBookTableName(); virtual ~KabDatabaseMetaData(); diff --git a/connectivity/source/drivers/kab/KDriver.hxx b/connectivity/source/drivers/kab/KDriver.hxx index 429b9f8e0242..42cea307acbb 100644 --- a/connectivity/source/drivers/kab/KDriver.hxx +++ b/connectivity/source/drivers/kab/KDriver.hxx @@ -65,7 +65,7 @@ namespace connectivity KDEVersionCheckFunction m_pKDEVersionCheckFunc; public: - KabImplModule( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext ); + explicit KabImplModule( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext ); /** determines whether there is a KDE present in the environment */ @@ -155,7 +155,7 @@ namespace connectivity static OUString impl_getConfigurationSettingsPath(); protected: - KabDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext); + explicit KabDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext); // OComponentHelper virtual void SAL_CALL disposing() SAL_OVERRIDE; diff --git a/connectivity/source/drivers/kab/KResultSet.hxx b/connectivity/source/drivers/kab/KResultSet.hxx index 78fbffe14cc8..fc347d485ef5 100644 --- a/connectivity/source/drivers/kab/KResultSet.hxx +++ b/connectivity/source/drivers/kab/KResultSet.hxx @@ -91,7 +91,7 @@ namespace connectivity public: DECLARE_SERVICE_INFO(); - KabResultSet(KabCommonStatement *pStmt); + explicit KabResultSet(KabCommonStatement *pStmt); ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *() { diff --git a/connectivity/source/drivers/kab/KStatement.hxx b/connectivity/source/drivers/kab/KStatement.hxx index 9c45ea1fa380..bd01eaf88437 100644 --- a/connectivity/source/drivers/kab/KStatement.hxx +++ b/connectivity/source/drivers/kab/KStatement.hxx @@ -93,7 +93,7 @@ namespace connectivity public: ::cppu::OBroadcastHelper& rBHelper; - KabCommonStatement(KabConnection *_pConnection); + explicit KabCommonStatement(KabConnection *_pConnection); using KabCommonStatement_BASE::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >; // OComponentHelper @@ -151,7 +151,7 @@ namespace connectivity virtual ~KabStatement() { } public: - KabStatement(KabConnection* _pConnection); + explicit KabStatement(KabConnection* _pConnection); DECLARE_SERVICE_INFO(); }; } diff --git a/connectivity/source/drivers/kab/kcondition.hxx b/connectivity/source/drivers/kab/kcondition.hxx index 7d1a3031295d..bc088d7e1dde 100644 --- a/connectivity/source/drivers/kab/kcondition.hxx +++ b/connectivity/source/drivers/kab/kcondition.hxx @@ -44,7 +44,7 @@ class KabConditionConstant : public KabCondition bool m_bValue; public: - KabConditionConstant(const bool bValue); + explicit KabConditionConstant(const bool bValue); virtual bool isAlwaysTrue() const SAL_OVERRIDE; virtual bool isAlwaysFalse() const SAL_OVERRIDE; virtual bool eval(const ::KABC::Addressee &aAddressee) const SAL_OVERRIDE; @@ -58,7 +58,7 @@ class KabConditionColumn : public KabCondition QString value(const ::KABC::Addressee &aAddressee) const; public: - KabConditionColumn( + explicit KabConditionColumn( const OUString &sColumnName) throw(::com::sun::star::sdbc::SQLException); virtual bool isAlwaysTrue() const SAL_OVERRIDE; virtual bool isAlwaysFalse() const SAL_OVERRIDE; @@ -67,7 +67,7 @@ class KabConditionColumn : public KabCondition class KabConditionNull : public KabConditionColumn { public: - KabConditionNull( + explicit KabConditionNull( const OUString &sColumnName) throw(::com::sun::star::sdbc::SQLException); virtual bool eval(const ::KABC::Addressee &aAddressee) const SAL_OVERRIDE; }; @@ -75,7 +75,7 @@ class KabConditionNull : public KabConditionColumn class KabConditionNotNull : public KabConditionColumn { public: - KabConditionNotNull( + explicit KabConditionNotNull( const OUString &sColumnName) throw(::com::sun::star::sdbc::SQLException); virtual bool eval(const ::KABC::Addressee &aAddressee) const SAL_OVERRIDE; }; diff --git a/connectivity/source/drivers/macab/MacabCatalog.hxx b/connectivity/source/drivers/macab/MacabCatalog.hxx index c02251dfcad1..0a4c7b9f2b9f 100644 --- a/connectivity/source/drivers/macab/MacabCatalog.hxx +++ b/connectivity/source/drivers/macab/MacabCatalog.hxx @@ -34,7 +34,7 @@ namespace connectivity ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData; // just to make things easier public: - MacabCatalog(MacabConnection* _pCon); + explicit MacabCatalog(MacabConnection* _pCon); inline MacabConnection* getConnection() const { return m_pConnection; } diff --git a/connectivity/source/drivers/macab/MacabConnection.hxx b/connectivity/source/drivers/macab/MacabConnection.hxx index f0e6d514a942..36ed86ea7d3a 100644 --- a/connectivity/source/drivers/macab/MacabConnection.hxx +++ b/connectivity/source/drivers/macab/MacabConnection.hxx @@ -67,7 +67,7 @@ namespace connectivity public: virtual void construct( const OUString& url,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(::com::sun::star::sdbc::SQLException); - MacabConnection(MacabDriver* _pDriver); + explicit MacabConnection(MacabDriver* _pDriver); virtual ~MacabConnection(); void closeAllStatements () throw( ::com::sun::star::sdbc::SQLException); diff --git a/connectivity/source/drivers/macab/MacabDatabaseMetaData.hxx b/connectivity/source/drivers/macab/MacabDatabaseMetaData.hxx index eddecd809ba7..691da30f79dc 100644 --- a/connectivity/source/drivers/macab/MacabDatabaseMetaData.hxx +++ b/connectivity/source/drivers/macab/MacabDatabaseMetaData.hxx @@ -43,7 +43,7 @@ namespace connectivity inline MacabConnection* getOwnConnection() const { return m_xConnection.get(); } - MacabDatabaseMetaData(MacabConnection* _pCon); + explicit MacabDatabaseMetaData(MacabConnection* _pCon); virtual ~MacabDatabaseMetaData(); // this interface is really BIG diff --git a/connectivity/source/drivers/macab/MacabDriver.hxx b/connectivity/source/drivers/macab/MacabDriver.hxx index 0c667e5a155a..508cae0d83d8 100644 --- a/connectivity/source/drivers/macab/MacabDriver.hxx +++ b/connectivity/source/drivers/macab/MacabDriver.hxx @@ -132,7 +132,7 @@ namespace connectivity static OUString impl_getConfigurationSettingsPath(); protected: - MacabDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext); + explicit MacabDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext); // OComponentHelper virtual void SAL_CALL disposing() SAL_OVERRIDE; diff --git a/connectivity/source/drivers/macab/MacabRecord.hxx b/connectivity/source/drivers/macab/MacabRecord.hxx index 3e8cf7a1dbc3..0f84bc98c43c 100644 --- a/connectivity/source/drivers/macab/MacabRecord.hxx +++ b/connectivity/source/drivers/macab/MacabRecord.hxx @@ -49,7 +49,7 @@ namespace connectivity void releaseFields(); public: MacabRecord(); - MacabRecord(const sal_Int32 _size); + explicit MacabRecord(const sal_Int32 _size); virtual ~MacabRecord(); void insertAtColumn (CFTypeRef _value, ABPropertyType _type, const sal_Int32 _column); bool contains(const macabfield *_field) const; diff --git a/connectivity/source/drivers/macab/MacabRecords.hxx b/connectivity/source/drivers/macab/MacabRecords.hxx index 5a5035258990..615c8ba313c1 100644 --- a/connectivity/source/drivers/macab/MacabRecords.hxx +++ b/connectivity/source/drivers/macab/MacabRecords.hxx @@ -78,8 +78,8 @@ namespace connectivity void insertPropertyIntoMacabRecord(const ABPropertyType _propertyType, MacabRecord *_abrecord, const MacabHeader *_header, const OUString& _propertyName, const CFTypeRef _propertyValue) const; public: MacabRecords(const ABAddressBookRef _addressBook, MacabHeader *_header, MacabRecord **_records, sal_Int32 _numRecords); - MacabRecords(const MacabRecords *_copy); - MacabRecords(const ABAddressBookRef _addressBook); + explicit MacabRecords(const MacabRecords *_copy); + explicit MacabRecords(const ABAddressBookRef _addressBook); ~MacabRecords(); void initialize(); diff --git a/connectivity/source/drivers/macab/MacabResultSet.hxx b/connectivity/source/drivers/macab/MacabResultSet.hxx index 747b6a192e3e..61b4cb0746f2 100644 --- a/connectivity/source/drivers/macab/MacabResultSet.hxx +++ b/connectivity/source/drivers/macab/MacabResultSet.hxx @@ -91,7 +91,7 @@ namespace connectivity public: DECLARE_SERVICE_INFO(); - MacabResultSet(MacabCommonStatement *pStmt); + explicit MacabResultSet(MacabCommonStatement *pStmt); ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *() { diff --git a/connectivity/source/drivers/macab/MacabStatement.hxx b/connectivity/source/drivers/macab/MacabStatement.hxx index fc3a1d1752af..79d420e38518 100644 --- a/connectivity/source/drivers/macab/MacabStatement.hxx +++ b/connectivity/source/drivers/macab/MacabStatement.hxx @@ -96,7 +96,7 @@ namespace connectivity public: ::cppu::OBroadcastHelper& rBHelper; - MacabCommonStatement(MacabConnection *_pConnection); + explicit MacabCommonStatement(MacabConnection *_pConnection); using MacabCommonStatement_BASE::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >; // OComponentHelper @@ -157,7 +157,7 @@ namespace connectivity virtual ~MacabStatement() { } public: - MacabStatement(MacabConnection* _pConnection); + explicit MacabStatement(MacabConnection* _pConnection); DECLARE_SERVICE_INFO(); }; } diff --git a/connectivity/source/drivers/macab/macabcondition.hxx b/connectivity/source/drivers/macab/macabcondition.hxx index 6ee7d5eac687..9ecfb42a13fe 100644 --- a/connectivity/source/drivers/macab/macabcondition.hxx +++ b/connectivity/source/drivers/macab/macabcondition.hxx @@ -46,7 +46,7 @@ class MacabConditionConstant : public MacabCondition bool m_bValue; public: - MacabConditionConstant(const bool bValue); + explicit MacabConditionConstant(const bool bValue); virtual bool isAlwaysTrue() const SAL_OVERRIDE; virtual bool isAlwaysFalse() const SAL_OVERRIDE; virtual bool eval(const MacabRecord *aRecord) const SAL_OVERRIDE; diff --git a/connectivity/source/drivers/mork/MCatalog.hxx b/connectivity/source/drivers/mork/MCatalog.hxx index 30947278b8da..4c0f9d0973e8 100644 --- a/connectivity/source/drivers/mork/MCatalog.hxx +++ b/connectivity/source/drivers/mork/MCatalog.hxx @@ -41,7 +41,7 @@ namespace connectivity virtual void refreshUsers() SAL_OVERRIDE ; virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getTables( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; public: - OCatalog(OConnection* _pCon); + explicit OCatalog(OConnection* _pCon); OConnection* getConnection() const { return m_pConnection; } sdbcx::OCollection* getPrivateTables() const { return m_pTables;} diff --git a/connectivity/source/drivers/mork/MColumnAlias.hxx b/connectivity/source/drivers/mork/MColumnAlias.hxx index f45453bfd159..742451dd191d 100644 --- a/connectivity/source/drivers/mork/MColumnAlias.hxx +++ b/connectivity/source/drivers/mork/MColumnAlias.hxx @@ -56,7 +56,7 @@ namespace connectivity AliasMap m_aAliasMap; public: - OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & ); + explicit OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & ); inline bool hasAlias( const OUString& _rAlias ) const { diff --git a/connectivity/source/drivers/mork/MConnection.hxx b/connectivity/source/drivers/mork/MConnection.hxx index f843f8eabb48..ac4616be9785 100644 --- a/connectivity/source/drivers/mork/MConnection.hxx +++ b/connectivity/source/drivers/mork/MConnection.hxx @@ -59,7 +59,7 @@ namespace connectivity public: void construct( const OUString& url,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(::com::sun::star::sdbc::SQLException); - OConnection(MorkDriver* const driver); + explicit OConnection(MorkDriver* const driver); virtual ~OConnection(); MorkDriver* getDriver() {return m_pDriver;}; diff --git a/connectivity/source/drivers/mork/MDatabaseMetaData.hxx b/connectivity/source/drivers/mork/MDatabaseMetaData.hxx index f9b693010b8b..d67b177dc1b8 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaData.hxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaData.hxx @@ -45,7 +45,7 @@ namespace connectivity inline OConnection* getOwnConnection() const { return m_pConnection; } - ODatabaseMetaData(OConnection* _pCon); + explicit ODatabaseMetaData(OConnection* _pCon); private: virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > impl_getTypeInfo_throw() SAL_OVERRIDE; diff --git a/connectivity/source/drivers/mork/MDriver.hxx b/connectivity/source/drivers/mork/MDriver.hxx index 9aa9e1b2a4ab..4c832948e702 100644 --- a/connectivity/source/drivers/mork/MDriver.hxx +++ b/connectivity/source/drivers/mork/MDriver.hxx @@ -51,7 +51,7 @@ class MorkDriver: private boost::noncopyable { public: - MorkDriver(css::uno::Reference< css::uno::XComponentContext > const context); + explicit MorkDriver(css::uno::Reference< css::uno::XComponentContext > const context); static OUString getImplementationName_Static() throw(css::uno::RuntimeException); static css::uno::Sequence< OUString > getSupportedServiceNames_Static() diff --git a/connectivity/source/drivers/mork/MNSINIParser.hxx b/connectivity/source/drivers/mork/MNSINIParser.hxx index 3dbbaa6ded13..fd3c518b190f 100644 --- a/connectivity/source/drivers/mork/MNSINIParser.hxx +++ b/connectivity/source/drivers/mork/MNSINIParser.hxx @@ -60,7 +60,7 @@ class IniParser IniSectionMap mAllSection; public: IniSectionMap& getAllSection() { return mAllSection; } - IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException); + explicit IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException); }; #endif diff --git a/connectivity/source/drivers/mork/MQueryHelper.hxx b/connectivity/source/drivers/mork/MQueryHelper.hxx index cdf6043ecd8b..23cffe295140 100644 --- a/connectivity/source/drivers/mork/MQueryHelper.hxx +++ b/connectivity/source/drivers/mork/MQueryHelper.hxx @@ -64,7 +64,7 @@ namespace connectivity node_type m_eNodeType; MQueryExpressionBase() : m_eNodeType( Unknown ) {} - MQueryExpressionBase( node_type _eNodeType ) : m_eNodeType( _eNodeType ) {} + explicit MQueryExpressionBase( node_type _eNodeType ) : m_eNodeType( _eNodeType ) {} public: virtual ~MQueryExpressionBase() {} @@ -193,7 +193,7 @@ namespace connectivity sal_Int32 doQueryListTable(OConnection* xConnection, OString& ouStringTable); public: - MQueryHelper(const OColumnAlias& _ca); + explicit MQueryHelper(const OColumnAlias& _ca); virtual ~MQueryHelper(); void reset(); diff --git a/connectivity/source/drivers/mork/MResultSet.hxx b/connectivity/source/drivers/mork/MResultSet.hxx index 7a18d3aa3f7f..6be1c27e4e78 100644 --- a/connectivity/source/drivers/mork/MResultSet.hxx +++ b/connectivity/source/drivers/mork/MResultSet.hxx @@ -345,7 +345,7 @@ public: class ResultSetEntryGuard : public ::osl::MutexGuard { public: - ResultSetEntryGuard( OResultSet& _rRS ) : ::osl::MutexGuard( _rRS.getMutex() ) + explicit ResultSetEntryGuard( OResultSet& _rRS ) : ::osl::MutexGuard( _rRS.getMutex() ) { _rRS.methodEntry(); } diff --git a/connectivity/source/drivers/mork/MStatement.hxx b/connectivity/source/drivers/mork/MStatement.hxx index b5eaffc6fdea..2818aeb439b3 100644 --- a/connectivity/source/drivers/mork/MStatement.hxx +++ b/connectivity/source/drivers/mork/MStatement.hxx @@ -149,7 +149,7 @@ namespace connectivity // other methods OConnection* getOwnConnection() const { return m_pConnection;} - OCommonStatement(OConnection* _pConnection ); + explicit OCommonStatement(OConnection* _pConnection ); using OCommonStatement_IBASE::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >; // OComponentHelper @@ -187,7 +187,7 @@ namespace connectivity virtual ~OStatement(){} public: // a constructor, for when the object needs to be returned: - OStatement( OConnection* _pConnection); + explicit OStatement( OConnection* _pConnection); DECLARE_SERVICE_INFO(); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/connectivity/source/drivers/mork/MorkParser.hxx b/connectivity/source/drivers/mork/MorkParser.hxx index d73acc85d338..01d47e343962 100644 --- a/connectivity/source/drivers/mork/MorkParser.hxx +++ b/connectivity/source/drivers/mork/MorkParser.hxx @@ -83,7 +83,7 @@ class LO_DLLPUBLIC_MORK MorkParser { public: - MorkParser( int defaultScope = 0x80 ); + explicit MorkParser( int defaultScope = 0x80 ); /// Open and parse mork file diff --git a/connectivity/source/drivers/mozab/MCatalog.hxx b/connectivity/source/drivers/mozab/MCatalog.hxx index 6ebfcb67f573..3df1ab852f83 100644 --- a/connectivity/source/drivers/mozab/MCatalog.hxx +++ b/connectivity/source/drivers/mozab/MCatalog.hxx @@ -41,7 +41,7 @@ namespace connectivity virtual void refreshUsers() ; virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getTables( ) throw(::com::sun::star::uno::RuntimeException); public: - OCatalog(OConnection* _pCon); + explicit OCatalog(OConnection* _pCon); OConnection* getConnection() const { return m_pConnection; } sdbcx::OCollection* getPrivateTables() const { return m_pTables;} diff --git a/connectivity/source/drivers/mozab/MColumnAlias.hxx b/connectivity/source/drivers/mozab/MColumnAlias.hxx index 4067fd621ca6..807cb112862a 100644 --- a/connectivity/source/drivers/mozab/MColumnAlias.hxx +++ b/connectivity/source/drivers/mozab/MColumnAlias.hxx @@ -56,7 +56,7 @@ namespace connectivity AliasMap m_aAliasMap; public: - OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & ); + explicit OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & ); inline bool hasAlias( const OUString& _rAlias ) const { diff --git a/connectivity/source/drivers/mozab/MConnection.hxx b/connectivity/source/drivers/mozab/MConnection.hxx index ec7d017b6a44..597b73b4f249 100644 --- a/connectivity/source/drivers/mozab/MConnection.hxx +++ b/connectivity/source/drivers/mozab/MConnection.hxx @@ -128,7 +128,7 @@ namespace connectivity public: virtual void construct( const OUString& url,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(::com::sun::star::sdbc::SQLException); - OConnection(MozabDriver* _pDriver); + explicit OConnection(MozabDriver* _pDriver); virtual ~OConnection(); void closeAllStatements () throw( ::com::sun::star::sdbc::SQLException); diff --git a/connectivity/source/drivers/mozab/MDatabaseMetaData.hxx b/connectivity/source/drivers/mozab/MDatabaseMetaData.hxx index 553aff56e7b1..4c9410517bf8 100644 --- a/connectivity/source/drivers/mozab/MDatabaseMetaData.hxx +++ b/connectivity/source/drivers/mozab/MDatabaseMetaData.hxx @@ -45,7 +45,7 @@ namespace connectivity inline OConnection* getOwnConnection() const { return m_pConnection; } - ODatabaseMetaData(OConnection* _pCon); + explicit ODatabaseMetaData(OConnection* _pCon); private: virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > impl_getTypeInfo_throw(); diff --git a/connectivity/source/drivers/mozab/MDriver.hxx b/connectivity/source/drivers/mozab/MDriver.hxx index 37545c83aa0c..fc2555cd1f08 100644 --- a/connectivity/source/drivers/mozab/MDriver.hxx +++ b/connectivity/source/drivers/mozab/MDriver.hxx @@ -71,7 +71,7 @@ namespace connectivity virtual ~MozabDriver(); public: - MozabDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory); + explicit MozabDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory); // OComponentHelper virtual void SAL_CALL disposing(); diff --git a/connectivity/source/drivers/mozab/MResultSet.hxx b/connectivity/source/drivers/mozab/MResultSet.hxx index 22e30ec1d783..3c1ac243af18 100644 --- a/connectivity/source/drivers/mozab/MResultSet.hxx +++ b/connectivity/source/drivers/mozab/MResultSet.hxx @@ -346,7 +346,7 @@ public: class ResultSetEntryGuard : public ::osl::MutexGuard { public: - ResultSetEntryGuard( OResultSet& _rRS ) : ::osl::MutexGuard( _rRS.getMutex() ) + explicit ResultSetEntryGuard( OResultSet& _rRS ) : ::osl::MutexGuard( _rRS.getMutex() ) { _rRS.methodEntry(); } diff --git a/connectivity/source/drivers/mozab/MStatement.hxx b/connectivity/source/drivers/mozab/MStatement.hxx index 59b30fb3ad7e..b6ce3eb82e8e 100644 --- a/connectivity/source/drivers/mozab/MStatement.hxx +++ b/connectivity/source/drivers/mozab/MStatement.hxx @@ -151,7 +151,7 @@ namespace connectivity // other methods OConnection* getOwnConnection() const { return m_pConnection;} - OCommonStatement(OConnection* _pConnection ); + explicit OCommonStatement(OConnection* _pConnection ); using OCommonStatement_IBASE::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >; // OComponentHelper @@ -189,7 +189,7 @@ namespace connectivity ~OStatement(){} public: // a constructor, for when the object needs to be returned: - OStatement( OConnection* _pConnection) : OCommonStatement( _pConnection){} + expliit OStatement( OConnection* _pConnection) : OCommonStatement( _pConnection){} DECLARE_SERVICE_INFO(); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx index 58ff8fd3cffb..81637f4f8c27 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx +++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx @@ -48,7 +48,7 @@ namespace connectivity public: void Init(); - MozillaBootstrap(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory); + explicit MozillaBootstrap(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory); // OComponentHelper virtual void SAL_CALL disposing() SAL_OVERRIDE; diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx index b901156ebcb1..dc3e2749d011 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx @@ -59,7 +59,7 @@ class IniParser IniSectionMap mAllSection; public: IniSectionMap& getAllSection() { return mAllSection; } - IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException); + explicit IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException); }; #endif diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx b/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx index 524fe5e0014b..523e37628af6 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx @@ -63,7 +63,7 @@ namespace connectivity node_type m_eNodeType; MQueryExpressionBase() : m_eNodeType( Unknown ) {} - MQueryExpressionBase( node_type _eNodeType ) : m_eNodeType( _eNodeType ) {} + explicit MQueryExpressionBase( node_type _eNodeType ) : m_eNodeType( _eNodeType ) {} public: sal_Bool isUnknown( ) const { return m_eNodeType == Unknown; } @@ -254,8 +254,7 @@ namespace connectivity inline const ErrorDescriptor& getError() const { return m_aError; } public: -// MQuery(); - MQuery( const OColumnAlias& _ca ); + explicit MQuery( const OColumnAlias& _ca ); virtual ~MQuery(); static MNameMapper* CreateNameMapper(); static void FreeNameMapper( MNameMapper* _ptr ); diff --git a/connectivity/source/drivers/odbc/ORealDriver.cxx b/connectivity/source/drivers/odbc/ORealDriver.cxx index 27b23ff7d047..f5f4f2e20a00 100644 --- a/connectivity/source/drivers/odbc/ORealDriver.cxx +++ b/connectivity/source/drivers/odbc/ORealDriver.cxx @@ -97,7 +97,7 @@ namespace connectivity virtual oslGenericFunction getOdbcFunction(ODBC3SQLFunctionId _nIndex) const SAL_OVERRIDE; virtual SQLHANDLE EnvironmentHandle(OUString &_rPath) SAL_OVERRIDE; public: - ORealObdcDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) : ODBCDriver(_rxFactory) {} + explicit ORealObdcDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) : ODBCDriver(_rxFactory) {} }; diff --git a/connectivity/source/drivers/postgresql/pq_driver.hxx b/connectivity/source/drivers/postgresql/pq_driver.hxx index 0751184d6336..b10077656135 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.hxx +++ b/connectivity/source/drivers/postgresql/pq_driver.hxx @@ -74,7 +74,7 @@ class Driver : public MutexHolder, public DriverBase com::sun::star::uno::Reference< com::sun::star::lang::XMultiComponentFactory > m_smgr; public: - Driver ( const com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > & ctx ) + explicit Driver ( const com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > & ctx ) : DriverBase( this->m_mutex ), m_ctx( ctx ), m_smgr( ctx->getServiceManager() ) diff --git a/connectivity/source/drivers/postgresql/pq_tools.hxx b/connectivity/source/drivers/postgresql/pq_tools.hxx index 00a385893efa..f08cebcd16d3 100644 --- a/connectivity/source/drivers/postgresql/pq_tools.hxx +++ b/connectivity/source/drivers/postgresql/pq_tools.hxx @@ -146,7 +146,7 @@ class DisposeGuard { com::sun::star::uno::Reference< com::sun::star::uno::XInterface > d; public: - DisposeGuard(const com::sun::star::uno::Reference< com::sun::star::uno::XInterface > & r ); + explicit DisposeGuard(const com::sun::star::uno::Reference< com::sun::star::uno::XInterface > & r ); ~DisposeGuard(); }; @@ -157,7 +157,7 @@ class TransactionGuard bool m_commited; public: /// takes over ownership of given statemet - TransactionGuard( const com::sun::star::uno::Reference< com::sun::star::sdbc::XStatement > &stmt ); + explicit TransactionGuard( const com::sun::star::uno::Reference< com::sun::star::sdbc::XStatement > &stmt ); ~TransactionGuard( ); void commit(); diff --git a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx index a5d8f86bbb5e..66f917e1869c 100644 --- a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx +++ b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx @@ -240,7 +240,7 @@ class ContainerEnumeration : public ::cppu::WeakImplHelper1< XEnumeration > com::sun::star::uno::Sequence< com::sun::star::uno::Any > m_vec; sal_Int32 m_index; public: - ContainerEnumeration( const com::sun::star::uno::Sequence< com::sun::star::uno::Any > &vec ) + explicit ContainerEnumeration( const com::sun::star::uno::Sequence< com::sun::star::uno::Any > &vec ) : m_vec( vec ), m_index( -1 ) {} diff --git a/connectivity/source/drivers/postgresql/pq_xcontainer.hxx b/connectivity/source/drivers/postgresql/pq_xcontainer.hxx index c585489e1ec6..1fe97dc4c44c 100644 --- a/connectivity/source/drivers/postgresql/pq_xcontainer.hxx +++ b/connectivity/source/drivers/postgresql/pq_xcontainer.hxx @@ -70,7 +70,7 @@ class RefreshedBroadcaster : public EventBroadcastHelper { com::sun::star::lang::EventObject m_event; public: - RefreshedBroadcaster(const com::sun::star::uno::Reference< com::sun::star::uno::XInterface > & source ) : + explicit RefreshedBroadcaster(const com::sun::star::uno::Reference< com::sun::star::uno::XInterface > & source ) : m_event( source ) {} diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx index b64e935374da..7f2e7f02c533 100644 --- a/connectivity/source/manager/mdrivermanager.cxx +++ b/connectivity/source/manager/mdrivermanager.cxx @@ -68,7 +68,7 @@ class ODriverEnumeration : public ::cppu::WeakImplHelper1< XEnumeration > protected: virtual ~ODriverEnumeration(); public: - ODriverEnumeration(const DriverArray& _rDriverSequence); + explicit ODriverEnumeration(const DriverArray& _rDriverSequence); // XEnumeration virtual sal_Bool SAL_CALL hasMoreElements( ) throw(RuntimeException, std::exception) SAL_OVERRIDE; @@ -106,7 +106,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W /// an STL functor which ensures that a SdbcDriver described by a DriverAccess is loaded struct EnsureDriver : public ::std::unary_function< DriverAccess, DriverAccess > { - EnsureDriver( const Reference< XComponentContext > &rxContext ) + explicit EnsureDriver( const Reference< XComponentContext > &rxContext ) : mxContext( rxContext ) {} const DriverAccess& operator()( const DriverAccess& _rDescriptor ) const @@ -151,7 +151,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W /// an STL functor which loads a driver described by a DriverAccess, and extracts the SdbcDriver struct ExtractAfterLoad : public ExtractAfterLoad_BASE { - ExtractAfterLoad( const Reference< XComponentContext > &rxContext ) + explicit ExtractAfterLoad( const Reference< XComponentContext > &rxContext ) : ExtractAfterLoad_BASE( ExtractDriverFromAccess(), EnsureDriver( rxContext ) ) {} }; @@ -171,7 +171,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W public: // ctor - AcceptsURL( const OUString& _rURL ) : m_rURL( _rURL ) { } + explicit AcceptsURL( const OUString& _rURL ) : m_rURL( _rURL ) { } bool operator()( const Reference<XDriver>& _rDriver ) const @@ -241,7 +241,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W struct EqualDriverAccessToName : public ::std::binary_function< DriverAccess, OUString, bool > { OUString m_sImplName; - EqualDriverAccessToName(const OUString& _sImplName) : m_sImplName(_sImplName){} + explicit EqualDriverAccessToName(const OUString& _sImplName) : m_sImplName(_sImplName){} bool operator()( const DriverAccess& lhs) { diff --git a/connectivity/source/manager/mdrivermanager.hxx b/connectivity/source/manager/mdrivermanager.hxx index ec4dea8baeb2..0f40800d2250 100644 --- a/connectivity/source/manager/mdrivermanager.hxx +++ b/connectivity/source/manager/mdrivermanager.hxx @@ -77,7 +77,7 @@ namespace drivermanager sal_Int32 m_nLoginTimeout; private: - OSDBCDriverManager( + explicit OSDBCDriverManager( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext ); virtual ~OSDBCDriverManager(); diff --git a/connectivity/workben/iniParser/main.cxx b/connectivity/workben/iniParser/main.cxx index e562e065ef1b..1ac73c547d11 100644 --- a/connectivity/workben/iniParser/main.cxx +++ b/connectivity/workben/iniParser/main.cxx @@ -64,7 +64,7 @@ public: return &mAllSection[secName]; return NULL; } - IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException ) + explicit IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException ) { OUString curDirPth; OUString iniUrl; diff --git a/cui/source/customize/macropg_impl.hxx b/cui/source/customize/macropg_impl.hxx index f80697fb5783..36a52f8e0b51 100644 --- a/cui/source/customize/macropg_impl.hxx +++ b/cui/source/customize/macropg_impl.hxx @@ -23,7 +23,7 @@ class _SvxMacroTabPage_Impl { public: - _SvxMacroTabPage_Impl( const SfxItemSet& rAttrSet ); + explicit _SvxMacroTabPage_Impl( const SfxItemSet& rAttrSet ); VclPtr<PushButton> pAssignPB; VclPtr<PushButton> pAssignComponentPB; diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index 755c4aa66c9e..a0ab700a1690 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -1514,7 +1514,7 @@ class ColorPicker : protected ::comphelper::OBaseMutex, // Struct for right i public ColorPickerBase { public: - ColorPicker( Reference< XComponentContext > const & xContext ); + explicit ColorPicker( Reference< XComponentContext > const & xContext ); // XInitialization virtual void SAL_CALL initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 756b23ce8978..943811d927c6 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -64,7 +64,7 @@ using namespace svx; #define DECL_ABSTDLG_BASE(Class,DialogClass) \ ScopedVclPtr<DialogClass> pDlg; \ public: \ - Class( DialogClass* p) \ + explicit Class( DialogClass* p) \ : pDlg(p) \ {} \ virtual short Execute() SAL_OVERRIDE ; @@ -80,7 +80,7 @@ class VclAbstractDialog2_Impl : public VclAbstractDialog2 ScopedVclPtr<Dialog> m_pDlg; Link<> m_aEndDlgHdl; public: - VclAbstractDialog2_Impl( Dialog* p ) : m_pDlg( p ) {} + explicit VclAbstractDialog2_Impl( Dialog* p ) : m_pDlg( p ) {} virtual ~VclAbstractDialog2_Impl(); virtual void StartExecuteModal( const Link<>& rEndDialogHdl ) SAL_OVERRIDE; virtual long GetResult() SAL_OVERRIDE; diff --git a/cui/source/options/certpath.hxx b/cui/source/options/certpath.hxx index 29a3e1aa45fb..5a09f9c153eb 100644 --- a/cui/source/options/certpath.hxx +++ b/cui/source/options/certpath.hxx @@ -33,7 +33,7 @@ private: void HandleCheckEntry(SvTreeListEntry* _pEntry); void AddCertPath(const OUString &rProfile, const OUString &rPath); public: - CertPathDialog(vcl::Window* pParent); + explicit CertPathDialog(vcl::Window* pParent); virtual ~CertPathDialog(); virtual void dispose() SAL_OVERRIDE; diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx index b36887c4d88f..b8253a6b1d21 100644 --- a/cui/source/options/connpooloptions.cxx +++ b/cui/source/options/connpooloptions.cxx @@ -46,7 +46,7 @@ namespace offapp Link<> m_aRowChangeHandler; public: - DriverListControl(vcl::Window* _pParent); + explicit DriverListControl(vcl::Window* _pParent); virtual void Init() SAL_OVERRIDE; void Update(const DriverPoolingSettings& _rSettings); diff --git a/cui/source/options/optaboutconfig.hxx b/cui/source/options/optaboutconfig.hxx index 8d4f2f16e107..f487418f42ef 100644 --- a/cui/source/options/optaboutconfig.hxx +++ b/cui/source/options/optaboutconfig.hxx @@ -64,7 +64,7 @@ private: DECL_LINK( SearchHdl_Impl, void* ); public: - CuiAboutConfigTabPage(vcl::Window* pParent); + explicit CuiAboutConfigTabPage(vcl::Window* pParent); virtual ~CuiAboutConfigTabPage(); virtual void dispose() SAL_OVERRIDE; void InsertEntry(const OUString& rProp, const OUString& rStatus, const OUString& rType, const OUString& rValue); diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index 9487c9a8aab4..9098a795dbc0 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -174,7 +174,7 @@ class ColorConfigWindow_Impl , public VclBuilderContainer { public: - ColorConfigWindow_Impl(vcl::Window* pParent); + explicit ColorConfigWindow_Impl(vcl::Window* pParent); virtual ~ColorConfigWindow_Impl() { disposeOnce(); } virtual void dispose() SAL_OVERRIDE; @@ -855,7 +855,7 @@ class ColorConfigCtrl_Impl : public VclVBox virtual void Command (CommandEvent const& rCEvt) SAL_OVERRIDE; virtual void DataChanged (DataChangedEvent const& rDCEvt) SAL_OVERRIDE; public: - ColorConfigCtrl_Impl(vcl::Window* pParent); + explicit ColorConfigCtrl_Impl(vcl::Window* pParent); virtual ~ColorConfigCtrl_Impl(); virtual void dispose() SAL_OVERRIDE; diff --git a/cui/source/options/optjava.hxx b/cui/source/options/optjava.hxx index b73e2c308bb9..025118fe5ff4 100644 --- a/cui/source/options/optjava.hxx +++ b/cui/source/options/optjava.hxx @@ -140,7 +140,7 @@ private: public: - SvxJavaParameterDlg( vcl::Window* pParent ); + explicit SvxJavaParameterDlg( vcl::Window* pParent ); virtual ~SvxJavaParameterDlg(); virtual void dispose() SAL_OVERRIDE; @@ -173,7 +173,7 @@ private: m_pPathList->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND ); } public: - SvxJavaClassPathDlg( vcl::Window* pParent ); + explicit SvxJavaClassPathDlg( vcl::Window* pParent ); virtual ~SvxJavaClassPathDlg(); virtual void dispose() SAL_OVERRIDE; diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 7f42d50323b3..ab5bea68f699 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -216,7 +216,7 @@ class DicUserData sal_uLong nVal; public: - DicUserData( sal_uLong nUserData ) : nVal( nUserData ) {} + explicit DicUserData( sal_uLong nUserData ) : nVal( nUserData ) {} DicUserData( sal_uInt16 nEID, bool bChecked, bool bEditable, bool bDeletable ); @@ -388,7 +388,7 @@ class OptionsUserData void SetModified(); public: - OptionsUserData( sal_uLong nUserData ) : nVal( nUserData ) {} + explicit OptionsUserData( sal_uLong nUserData ) : nVal( nUserData ) {} OptionsUserData( sal_uInt16 nEID, bool bHasNV, sal_uInt16 nNumVal, bool bCheckable, bool bChecked ); diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index 5e13382ed237..6bebf7f01a48 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -94,7 +94,7 @@ struct PathUserData_Impl OUString sUserPath; OUString sWritablePath; - PathUserData_Impl( sal_uInt16 nId ) : + explicit PathUserData_Impl( sal_uInt16 nId ) : nRealId( nId ), eState( SfxItemState::UNKNOWN ) {} }; diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx index 0ec920db2704..f5805026a01f 100644 --- a/cui/source/options/personalization.hxx +++ b/cui/source/options/personalization.hxx @@ -92,7 +92,7 @@ private: OUString m_aAppliedPersona; public: - SelectPersonaDialog( vcl::Window *pParent ); + explicit SelectPersonaDialog( vcl::Window *pParent ); virtual ~SelectPersonaDialog(); virtual void dispose() SAL_OVERRIDE; ::rtl::Reference< SearchAndParseThread > m_rSearchThread; diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 5aeaafbae998..269cce781187 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -471,7 +471,7 @@ struct OptionsPageInfo OUString m_sEventHdl; VclPtr<ExtensionsTabPage> m_pExtPage; - OptionsPageInfo( sal_uInt16 nId ) : m_pPage( NULL ), m_nPageId( nId ), m_pExtPage( NULL ) {} + explicit OptionsPageInfo( sal_uInt16 nId ) : m_pPage( NULL ), m_nPageId( nId ), m_pExtPage( NULL ) {} }; struct OptionsGroupInfo diff --git a/cui/source/options/tsaurls.hxx b/cui/source/options/tsaurls.hxx index 0b25238f1397..421710113533 100644 --- a/cui/source/options/tsaurls.hxx +++ b/cui/source/options/tsaurls.hxx @@ -30,7 +30,7 @@ private: void AddTSAURL(const OUString &rURL); public: - TSAURLsDialog(vcl::Window* pParent); + explicit TSAURLsDialog(vcl::Window* pParent); virtual ~TSAURLsDialog(); virtual void dispose() SAL_OVERRIDE; }; diff --git a/cui/source/options/webconninfo.hxx b/cui/source/options/webconninfo.hxx index 36aac634c644..9b830af762e3 100644 --- a/cui/source/options/webconninfo.hxx +++ b/cui/source/options/webconninfo.hxx @@ -59,7 +59,7 @@ namespace svx void FillPasswordList(); public: - WebConnectionInfoDialog( vcl::Window* pParent ); + explicit WebConnectionInfoDialog( vcl::Window* pParent ); virtual ~WebConnectionInfoDialog(); virtual void dispose() SAL_OVERRIDE; }; diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index ecd32b8522fa..69f51472da7a 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -307,7 +307,7 @@ class OfaAutoFmtPrcntSet : public ModalDialog { VclPtr<MetricField> m_pPrcntMF; public: - OfaAutoFmtPrcntSet(vcl::Window* pParent) + explicit OfaAutoFmtPrcntSet(vcl::Window* pParent) : ModalDialog(pParent, "PercentDialog","cui/ui/percentdialog.ui") { get(m_pPrcntMF, "margin"); diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 94b68db655c1..8d731f309771 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -149,7 +149,7 @@ sal_uInt16 GetItemId_Impl( ValueSet& rValueSet, const Color& rCol ) class BackgroundPreviewImpl : public vcl::Window { public: - BackgroundPreviewImpl(vcl::Window* pParent); + explicit BackgroundPreviewImpl(vcl::Window* pParent); void setBmp(bool bBmp); virtual ~BackgroundPreviewImpl(); virtual void dispose() SAL_OVERRIDE; |