summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-20 13:06:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-20 14:26:54 +0100
commit75938aff3848edb9fc705a70d79e9221b2c05c3a (patch)
treecfc18316289dd6bba97c411680860ee8f65af80b /dbaccess/source/ui/dlg
parentba9e005e71dbe71319d2ee5ab46495c26044454b (diff)
cppcheck: noExplicitConstructor
Change-Id: I45f2d96c7bd558405d0b5dfea3beb97ad720a82b
Diffstat (limited to 'dbaccess/source/ui/dlg')
-rw-r--r--dbaccess/source/ui/dlg/admincontrols.cxx4
-rw-r--r--dbaccess/source/ui/dlg/adminpages.hxx4
-rw-r--r--dbaccess/source/ui/dlg/dbfindex.hxx4
-rw-r--r--dbaccess/source/ui/dlg/finteraction.hxx4
-rw-r--r--dbaccess/source/ui/dlg/indexfieldscontrol.cxx2
-rw-r--r--dbaccess/source/ui/dlg/odbcconfig.hxx2
-rw-r--r--dbaccess/source/ui/dlg/optionalboolitem.hxx2
-rw-r--r--dbaccess/source/ui/dlg/sqlmessage.cxx8
8 files changed, 15 insertions, 15 deletions
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;