diff options
21 files changed, 32 insertions, 32 deletions
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index 892ed3500f79..6647b0457747 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -158,7 +158,7 @@ class SbaXDataBrowserController::FormControllerImpl SbaXDataBrowserController* m_pOwner; public: - FormControllerImpl(SbaXDataBrowserController* pOwner); + explicit FormControllerImpl(SbaXDataBrowserController* pOwner); // XFormController virtual ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFormOperations > SAL_CALL getFormOperations() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/dbaccess/source/ui/browser/dbloader.cxx b/dbaccess/source/ui/browser/dbloader.cxx index a0f36d8522c1..88e0f7fed45f 100644 --- a/dbaccess/source/ui/browser/dbloader.cxx +++ b/dbaccess/source/ui/browser/dbloader.cxx @@ -70,7 +70,7 @@ private: Reference< XFrame > m_xFrame; Reference< XComponentContext > m_xContext; public: - DBContentLoader(const Reference< XComponentContext >&); + explicit DBContentLoader(const Reference< XComponentContext >&); virtual ~DBContentLoader(); // XServiceInfo diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx index 42bd37ffe5aa..3f7d765b2a8d 100644 --- a/dbaccess/source/ui/browser/genericcontroller.cxx +++ b/dbaccess/source/ui/browser/genericcontroller.cxx @@ -94,7 +94,7 @@ namespace dbaui class UserDefinedFeatures { public: - UserDefinedFeatures( const Reference< XController >& _rxController ); + explicit UserDefinedFeatures( const Reference< XController >& _rxController ); static FeatureState getState( const URL& _rFeatureURL ); void execute( const URL& _rFeatureURL, const Sequence< PropertyValue>& _rArgs ); diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 7f21dc615819..cb0a9fd7c262 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -1250,7 +1250,7 @@ void SbaGridControl::DoFieldDrag(sal_uInt16 nColumnPos, sal_Int16 nRowPos) struct SbaGridControlPrec : ::std::unary_function<DataFlavorExVector::value_type,bool> { bool bQueryDrop; - SbaGridControlPrec(bool _bQueryDrop) + explicit SbaGridControlPrec(bool _bQueryDrop) : bQueryDrop(_bQueryDrop) { } diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 6b1220ff3531..7481d2bce017 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -398,7 +398,7 @@ namespace return m_rCollection.get( i_name ); } - SelectValueByName( ::comphelper::NamedValueCollection const& i_collection ) + explicit SelectValueByName( ::comphelper::NamedValueCollection const& i_collection ) :m_rCollection( i_collection ) { } @@ -1103,7 +1103,7 @@ namespace struct FilterByEntryDataId : public IEntryFilter { OUString sId; - FilterByEntryDataId( const OUString& _rId ) : sId( _rId ) { } + explicit FilterByEntryDataId( const OUString& _rId ) : sId( _rId ) { } virtual ~FilterByEntryDataId() {} diff --git a/dbaccess/source/ui/control/RelationControl.cxx b/dbaccess/source/ui/control/RelationControl.cxx index 27fe3d799dbe..0ba230eb9138 100644 --- a/dbaccess/source/ui/control/RelationControl.cxx +++ b/dbaccess/source/ui/control/RelationControl.cxx @@ -78,7 +78,7 @@ namespace dbaui */ sal_uInt16 getColumnIdent( sal_uInt16 _nColId ) const; public: - ORelationControl(vcl::Window *pParent); + explicit ORelationControl(vcl::Window *pParent); void SetController(OTableListBoxControl* pController) { m_pBoxControl = pController; diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index e68b22ae0dfa..191984d33a03 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -526,7 +526,7 @@ namespace class SelectionSupplier : public SelectionSupplier_Base { public: - SelectionSupplier( const Any& _rSelection ) + explicit SelectionSupplier( const Any& _rSelection ) :m_aSelection( _rSelection ) { } diff --git a/dbaccess/source/ui/control/sqledit.cxx b/dbaccess/source/ui/control/sqledit.cxx index 6831b573f6f7..612255739b08 100644 --- a/dbaccess/source/ui/control/sqledit.cxx +++ b/dbaccess/source/ui/control/sqledit.cxx @@ -43,7 +43,7 @@ class OSqlEdit::ChangesListener: public cppu::WeakImplHelper< css::beans::XPropertiesChangeListener > { public: - ChangesListener(OSqlEdit & editor): editor_(editor) {} + explicit ChangesListener(OSqlEdit & editor): editor_(editor) {} private: virtual ~ChangesListener() {} diff --git a/dbaccess/source/ui/dlg/admincontrols.cxx b/dbaccess/source/ui/dlg/admincontrols.cxx index a869c8220785..da655cad39cc 100644 --- a/dbaccess/source/ui/dlg/admincontrols.cxx +++ b/dbaccess/source/ui/dlg/admincontrols.cxx @@ -50,7 +50,7 @@ namespace dbaui class TextResetOperator :public ::svt::IWindowOperator { public: - TextResetOperator( const OUString& _rDisabledText ) + explicit TextResetOperator( const OUString& _rDisabledText ) :m_sDisabledText( _rDisabledText ) { } @@ -98,7 +98,7 @@ namespace dbaui class TextResetOperatorController_Base { protected: - TextResetOperatorController_Base( const OUString& _rDisabledText ) + explicit TextResetOperatorController_Base( const OUString& _rDisabledText ) :m_pEventFilter( new TextResetOperatorEventFilter ) ,m_pOperator( new TextResetOperator( _rDisabledText ) ) { diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx index e5b11252144c..072d2800bb3a 100644 --- a/dbaccess/source/ui/dlg/adminpages.hxx +++ b/dbaccess/source/ui/dlg/adminpages.hxx @@ -44,7 +44,7 @@ namespace dbaui { T* m_pSaveValue; public: - OSaveValueWrapper(T* _pSaveValue) : m_pSaveValue(_pSaveValue) + explicit OSaveValueWrapper(T* _pSaveValue) : m_pSaveValue(_pSaveValue) { OSL_ENSURE(m_pSaveValue,"Illegal argument!"); } virtual bool SaveValue() SAL_OVERRIDE { m_pSaveValue->SaveValue(); return true;} // bool return value only for stl @@ -55,7 +55,7 @@ namespace dbaui { T* m_pSaveValue; public: - ODisableWrapper(T* _pSaveValue) : m_pSaveValue(_pSaveValue) + explicit ODisableWrapper(T* _pSaveValue) : m_pSaveValue(_pSaveValue) { OSL_ENSURE(m_pSaveValue,"Illegal argument!"); } virtual bool SaveValue() SAL_OVERRIDE { return true;} // bool return value only for stl diff --git a/dbaccess/source/ui/dlg/dbfindex.hxx b/dbaccess/source/ui/dlg/dbfindex.hxx index c884178dd0cd..8feeff259ca9 100644 --- a/dbaccess/source/ui/dlg/dbfindex.hxx +++ b/dbaccess/source/ui/dlg/dbfindex.hxx @@ -41,7 +41,7 @@ private: public: OTableIndex() { } OTableIndex( const OTableIndex& _rSource) : aIndexFileName(_rSource.aIndexFileName) { } - OTableIndex( const OUString& rFileName ) : aIndexFileName( rFileName ) { } + explicit OTableIndex( const OUString& rFileName ) : aIndexFileName( rFileName ) { } void SetIndexFileName( const OUString& rFileName ) { aIndexFileName = rFileName; } OUString GetIndexFileName() const { return aIndexFileName; } @@ -62,7 +62,7 @@ private: public: OTableInfo() { } - OTableInfo( const OUString& rName ) : aTableName(rName) { } + explicit OTableInfo( const OUString& rName ) : aTableName(rName) { } void WriteInfFile( const OUString& rDSN ) const; }; diff --git a/dbaccess/source/ui/dlg/finteraction.hxx b/dbaccess/source/ui/dlg/finteraction.hxx index e3ae83f3c9af..56d6c2a9a710 100644 --- a/dbaccess/source/ui/dlg/finteraction.hxx +++ b/dbaccess/source/ui/dlg/finteraction.hxx @@ -40,9 +40,9 @@ namespace dbaui bool m_bDoesNotExist; public: - OFilePickerInteractionHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxMaster ); + explicit OFilePickerInteractionHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxMaster ); - inline bool isDoesNotExist( ) const { return m_bDoesNotExist; } + bool isDoesNotExist() const { return m_bDoesNotExist; } protected: // XInteractionHandler diff --git a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx index dd8f753a066d..235393ae249c 100644 --- a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx +++ b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx @@ -44,7 +44,7 @@ namespace dbaui Link<> m_aAdditionalModifyHdl; public: - DbaMouseDownListBoxController(ListBoxControl* _pParent) + explicit DbaMouseDownListBoxController(ListBoxControl* _pParent) :ListBoxCellController(_pParent) { } diff --git a/dbaccess/source/ui/dlg/odbcconfig.hxx b/dbaccess/source/ui/dlg/odbcconfig.hxx index 1631b714be6c..3da0b739f575 100644 --- a/dbaccess/source/ui/dlg/odbcconfig.hxx +++ b/dbaccess/source/ui/dlg/odbcconfig.hxx @@ -108,7 +108,7 @@ class OOdbcManagement Link<> m_aAsyncFinishCallback; public: - OOdbcManagement( const Link<>& _rAsyncFinishCallback ); + explicit OOdbcManagement( const Link<>& _rAsyncFinishCallback ); ~OOdbcManagement(); bool manageDataSources_async(); diff --git a/dbaccess/source/ui/dlg/optionalboolitem.hxx b/dbaccess/source/ui/dlg/optionalboolitem.hxx index 4902cd8d600d..aa80fd2d3270 100644 --- a/dbaccess/source/ui/dlg/optionalboolitem.hxx +++ b/dbaccess/source/ui/dlg/optionalboolitem.hxx @@ -34,7 +34,7 @@ namespace dbaui public: TYPEINFO_OVERRIDE(); - OptionalBoolItem( sal_Int16 nWhich ); + explicit OptionalBoolItem( sal_Int16 nWhich ); OptionalBoolItem( const OptionalBoolItem& _rSource ); virtual bool operator==( const SfxPoolItem& _rItem ) const SAL_OVERRIDE; diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx index 8218b58b3fe1..8fd564ba9e3a 100644 --- a/dbaccess/source/ui/dlg/sqlmessage.cxx +++ b/dbaccess/source/ui/dlg/sqlmessage.cxx @@ -79,7 +79,7 @@ namespace mutable Image m_defaultImage; public: - ImageProvider( sal_uInt16 _defaultImageID ) + explicit ImageProvider( sal_uInt16 _defaultImageID ) :m_defaultImageID( _defaultImageID ) { } @@ -97,7 +97,7 @@ namespace private: OUString m_label; public: - LabelProvider( sal_uInt16 _labelResourceID ) + explicit LabelProvider( sal_uInt16 _labelResourceID ) :m_label( ModuleRes( _labelResourceID ) ) { } @@ -191,7 +191,7 @@ namespace OUString sErrorCode; ExceptionDisplayInfo() : eType( SQLExceptionInfo::UNDEFINED ), bSubEntry( false ) { } - ExceptionDisplayInfo( SQLExceptionInfo::TYPE _eType ) : eType( _eType ), bSubEntry( false ) { } + explicit ExceptionDisplayInfo( SQLExceptionInfo::TYPE _eType ) : eType( _eType ), bSubEntry( false ) { } }; static bool lcl_hasDetails( const ExceptionDisplayInfo& _displayInfo ) @@ -410,7 +410,7 @@ struct SQLMessageBox_Impl { ExceptionDisplayChain aDisplayInfo; - SQLMessageBox_Impl( const SQLExceptionInfo& _rExceptionInfo ) + explicit SQLMessageBox_Impl( const SQLExceptionInfo& _rExceptionInfo ) { // transform the exception chain to a form more suitable for displaying it here ProviderFactory aProviderFactory; diff --git a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx index 073a28000994..5a6b97b4d1ca 100644 --- a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx +++ b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx @@ -34,7 +34,7 @@ namespace dbaui ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowUpdate > m_xRowUpdate; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetUpdate > m_xResultSetUpdate; public: - ORowUpdateHelper(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet>& _xRowSet) + explicit ORowUpdateHelper(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet>& _xRowSet) :m_xRowUpdate(_xRowSet,::com::sun::star::uno::UNO_QUERY) ,m_xResultSetUpdate(_xRowSet,::com::sun::star::uno::UNO_QUERY) { @@ -84,7 +84,7 @@ namespace dbaui ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XParameters > m_xParameters; public: - OParameterUpdateHelper(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement >& _xPrepared) + explicit OParameterUpdateHelper(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement >& _xPrepared) :m_xPrepared(_xPrepared) ,m_xParameters(_xPrepared,::com::sun::star::uno::UNO_QUERY) { diff --git a/dbaccess/source/ui/misc/asyncmodaldialog.cxx b/dbaccess/source/ui/misc/asyncmodaldialog.cxx index 7769c1132e09..684347a49e6b 100644 --- a/dbaccess/source/ui/misc/asyncmodaldialog.cxx +++ b/dbaccess/source/ui/misc/asyncmodaldialog.cxx @@ -38,7 +38,7 @@ namespace dbaui Reference< XExecutableDialog > m_xDialog; public: - DialogExecutor_Impl( const Reference< XExecutableDialog >& _rxDialog ) + explicit DialogExecutor_Impl( const Reference< XExecutableDialog >& _rxDialog ) :m_xDialog( _rxDialog ) { } diff --git a/dbaccess/source/ui/misc/controllerframe.cxx b/dbaccess/source/ui/misc/controllerframe.cxx index 31452e2ba2f8..7e3dae216af6 100644 --- a/dbaccess/source/ui/misc/controllerframe.cxx +++ b/dbaccess/source/ui/misc/controllerframe.cxx @@ -71,7 +71,7 @@ namespace dbaui class FrameWindowActivationListener : public FrameWindowActivationListener_Base { public: - FrameWindowActivationListener( ControllerFrame_Data& _rData ); + explicit FrameWindowActivationListener( ControllerFrame_Data& _rData ); void dispose(); @@ -101,7 +101,7 @@ namespace dbaui // ControllerFrame_Data struct ControllerFrame_Data { - ControllerFrame_Data( IController& _rController ) + explicit ControllerFrame_Data( IController& _rController ) :m_rController( _rController ) ,m_xFrame() ,m_xDocEventBroadcaster() diff --git a/dbaccess/source/ui/misc/dbaundomanager.cxx b/dbaccess/source/ui/misc/dbaundomanager.cxx index 3e0d13b6ce7a..35a943dd441d 100644 --- a/dbaccess/source/ui/misc/dbaundomanager.cxx +++ b/dbaccess/source/ui/misc/dbaundomanager.cxx @@ -94,7 +94,7 @@ namespace dbaui class OslMutexFacade : public ::framework::IMutex { public: - OslMutexFacade( ::osl::Mutex& i_mutex ) + explicit OslMutexFacade( ::osl::Mutex& i_mutex ) :m_rMutex( i_mutex ) { } @@ -124,7 +124,7 @@ namespace dbaui class UndoManagerMethodGuard : public ::framework::IMutexGuard { public: - UndoManagerMethodGuard( UndoManager_Impl& i_impl ) + explicit UndoManagerMethodGuard( UndoManager_Impl& i_impl ) :m_aGuard( i_impl.rMutex ) ,m_aMutexFacade( i_impl.rMutex ) { diff --git a/dbaccess/source/ui/misc/dsmeta.cxx b/dbaccess/source/ui/misc/dsmeta.cxx index aaf3ab9ddd90..c6837b91b51c 100644 --- a/dbaccess/source/ui/misc/dsmeta.cxx +++ b/dbaccess/source/ui/misc/dsmeta.cxx @@ -151,7 +151,7 @@ namespace dbaui public: DataSourceMetaData_Impl( const OUString& _sURL ); - inline OUString getType() const { return m_sURL; } + OUString getType() const { return m_sURL; } private: const OUString m_sURL; |