Kaydet (Commit) 3c68751f authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: noExplicitConstructor

Change-Id: If00a2de2c23271baaee126230c6bf9e657666ff4
üst 1ed0f437
......@@ -50,7 +50,7 @@ namespace abp
StringBag m_aInvalidDataSourceNames;
public:
FinalPage( OAddessBookSourcePilot* _pParent );
explicit FinalPage(OAddessBookSourcePilot* _pParent);
virtual ~FinalPage();
virtual void dispose() SAL_OVERRIDE;
......
......@@ -34,7 +34,7 @@ namespace abp
bool m_bSuccessfullyExecutedDialog;
public:
AdminDialogInvokationPage( OAddessBookSourcePilot* _pParent );
explicit AdminDialogInvokationPage(OAddessBookSourcePilot* _pParent);
virtual ~AdminDialogInvokationPage();
virtual void dispose() SAL_OVERRIDE;
protected:
......
......@@ -187,7 +187,10 @@ namespace abp
Reference< XNameAccess > xContext; /// the UNO data source context
StringBag aDataSourceNames; /// for quicker name checks (without the UNO overhead)
ODataSourceContextImpl( const Reference< XComponentContext >& _rxORB ) : xORB( _rxORB ) { }
explicit ODataSourceContextImpl(const Reference< XComponentContext >& _rxORB)
: xORB(_rxORB)
{
}
};
ODataSourceContext::ODataSourceContext(const Reference< XComponentContext >& _rxORB)
......@@ -321,9 +324,9 @@ namespace abp
OUString sName;
bool bTablesUpToDate; // table name cache up-to-date?
ODataSourceImpl( const Reference< XComponentContext >& _rxORB )
:xORB( _rxORB )
,bTablesUpToDate( false )
explicit ODataSourceImpl(const Reference< XComponentContext >& _rxORB)
: xORB(_rxORB)
, bTablesUpToDate(false)
{
}
......
......@@ -48,7 +48,7 @@ namespace abp
ODataSourceContextImpl* m_pImpl;
public:
ODataSourceContext(
explicit ODataSourceContext(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
);
~ODataSourceContext();
......@@ -112,7 +112,7 @@ namespace abp
// - ctor/dtor/assignment
/// constructs an object which is initially invalid
ODataSource(
explicit ODataSource(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
);
......
......@@ -34,7 +34,7 @@ namespace abp
VclPtr<FixedText> m_pHint;
public:
FieldMappingPage( OAddessBookSourcePilot* _pParent );
explicit FieldMappingPage(OAddessBookSourcePilot* _pParent);
virtual ~FieldMappingPage();
virtual void dispose() SAL_OVERRIDE;
protected:
......
......@@ -34,7 +34,7 @@ namespace abp
VclPtr<ListBox> m_pTableList;
public:
TableSelectionPage( OAddessBookSourcePilot* _pParent );
explicit TableSelectionPage( OAddessBookSourcePilot* _pParent );
virtual ~TableSelectionPage();
virtual void dispose() SAL_OVERRIDE;
protected:
......
......@@ -61,7 +61,7 @@ namespace abp
::std::vector< ButtonItem > m_aAllTypes;
public:
TypeSelectionPage( OAddessBookSourcePilot* _pParent );
explicit TypeSelectionPage( OAddessBookSourcePilot* _pParent );
virtual ~TypeSelectionPage();
virtual void dispose() SAL_OVERRIDE;
......
......@@ -27,7 +27,7 @@
class BibResId : public ResId
{
public:
BibResId( sal_uInt16 nId );
explicit BibResId(sal_uInt16 nId);
};
#define BIB_RESSTR(i) BibResId(i).toString()
......
......@@ -34,7 +34,7 @@ private:
VclPtr<vcl::Window> pBaseClass; // in cases, where BibShortCutHandler also has to be a window
protected:
inline BibShortCutHandler( vcl::Window* pBaseClass );
explicit BibShortCutHandler( vcl::Window* pBaseClass );
public:
virtual ~BibShortCutHandler();
......
......@@ -50,7 +50,7 @@ namespace bib
using FormControlContainer::connectForm;
using FormControlContainer::disconnectForm;
using FormControlContainer::isFormConnected;
BibViewFormControlContainer(BibView *pBibView);
explicit BibViewFormControlContainer(BibView *pBibView);
};
class BibView : public BibWindow
......
......@@ -78,7 +78,7 @@ namespace bib
struct ControlModeSwitch : public ::std::unary_function< Reference< XControl >, void >
{
bool bDesign;
ControlModeSwitch( bool _bDesign ) : bDesign( _bDesign ) { }
explicit ControlModeSwitch( bool _bDesign ) : bDesign( _bDesign ) { }
void operator() ( const Reference< XControl >& _rxControl ) const
{
......
......@@ -72,7 +72,7 @@ class BibPosListener :public cppu::WeakImplHelper <sdbc::XRowSetListener>
{
VclPtr<BibGeneralPage> pParentPage;
public:
BibPosListener(BibGeneralPage* pParent);
explicit BibPosListener(BibGeneralPage* pParent);
//XPositioningListener
virtual void SAL_CALL cursorMoved(const lang::EventObject& event) throw( uno::RuntimeException, std::exception ) SAL_OVERRIDE;
......
......@@ -50,7 +50,7 @@ class BibGeneralPageFocusListener : public cppu::WeakAggImplHelper1 < ::com::sun
private:
VclPtr<BibGeneralPage> mpBibGeneralPage;
public:
BibGeneralPageFocusListener(BibGeneralPage *pBibGeneralPage);
explicit BibGeneralPageFocusListener(BibGeneralPage *pBibGeneralPage);
virtual void SAL_CALL focusGained( const ::com::sun::star::awt::FocusEvent& e ) throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual void SAL_CALL focusLost( const ::com::sun::star::awt::FocusEvent& e ) throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
......
......@@ -40,7 +40,7 @@ namespace bib
OComponentAdapterBase* m_pAdapter;
::osl::Mutex& m_rMutex;
protected:
OComponentListener( ::osl::Mutex& _rMutex )
explicit OComponentListener( ::osl::Mutex& _rMutex )
:m_pAdapter( NULL )
,m_rMutex( _rMutex )
{
......@@ -110,7 +110,7 @@ namespace bib
friend class OLoadListenerAdapter;
protected:
OLoadListener( ::osl::Mutex& _rMutex ) : OComponentListener( _rMutex ) { }
explicit OLoadListener( ::osl::Mutex& _rMutex ) : OComponentListener( _rMutex ) { }
// XLoadListener equivalents
virtual void _loaded( const ::com::sun::star::lang::EventObject& aEvent ) = 0;
......
......@@ -54,7 +54,7 @@ class LdapUserProfileBe : private LdapProfileMutexHolder, public BackendBase
{
public:
LdapUserProfileBe(const uno::Reference<uno::XComponentContext>& xContext);
explicit LdapUserProfileBe(const uno::Reference<uno::XComponentContext>& xContext);
virtual ~LdapUserProfileBe() ;
// XServiceInfo
......
......@@ -41,7 +41,7 @@ namespace dbp
m_xDSContext;
public:
OTableSelectionPage(OControlWizard* _pParent);
explicit OTableSelectionPage(OControlWizard* _pParent);
virtual ~OTableSelectionPage();
virtual void dispose() SAL_OVERRIDE;
......@@ -105,7 +105,7 @@ namespace dbp
VclPtr<ListBox> m_pStoreWhere;
public:
ODBFieldPage( OControlWizard* _pParent );
explicit ODBFieldPage( OControlWizard* _pParent );
virtual ~ODBFieldPage();
virtual void dispose() SAL_OVERRIDE;
......
......@@ -80,7 +80,7 @@ namespace dbp
VclPtr<ListBox> m_pSelFields;
public:
OGridFieldsSelection( OGridWizard* _pParent );
explicit OGridFieldsSelection( OGridWizard* _pParent );
virtual ~OGridFieldsSelection();
virtual void dispose() SAL_OVERRIDE;
......
......@@ -87,7 +87,7 @@ namespace dbp
VclPtr<ListBox> m_pExistingRadios;
public:
ORadioSelectionPage( OControlWizard* _pParent );
explicit ORadioSelectionPage( OControlWizard* _pParent );
virtual ~ORadioSelectionPage();
virtual void dispose() SAL_OVERRIDE;
......@@ -115,7 +115,7 @@ namespace dbp
VclPtr<ListBox> m_pDefSelection;
public:
ODefaultFieldSelectionPage( OControlWizard* _pParent );
explicit ODefaultFieldSelectionPage( OControlWizard* _pParent );
virtual ~ODefaultFieldSelectionPage();
virtual void dispose() SAL_OVERRIDE;
......@@ -138,7 +138,7 @@ namespace dbp
m_nLastSelection;
public:
OOptionValuesPage( OControlWizard* _pParent );
explicit OOptionValuesPage( OControlWizard* _pParent );
virtual ~OOptionValuesPage();
virtual void dispose() SAL_OVERRIDE;
......@@ -158,7 +158,7 @@ namespace dbp
class OOptionDBFieldPage : public ODBFieldPage
{
public:
OOptionDBFieldPage( OControlWizard* _pParent );
explicit OOptionDBFieldPage( OControlWizard* _pParent );
protected:
OOptionGroupSettings& getSettings() { return static_cast<OGroupBoxWizard*>(getDialog())->getSettings(); }
......@@ -173,7 +173,7 @@ namespace dbp
VclPtr<Edit> m_pName;
public:
OFinalizeGBWPage( OControlWizard* _pParent );
explicit OFinalizeGBWPage( OControlWizard* _pParent );
virtual ~OFinalizeGBWPage();
virtual void dispose() SAL_OVERRIDE;
......
......@@ -101,7 +101,7 @@ namespace dbp
VclPtr<ListBox> m_pSelectTable;
public:
OContentTableSelection( OListComboWizard* _pParent );
explicit OContentTableSelection( OListComboWizard* _pParent );
virtual ~OContentTableSelection();
virtual void dispose() SAL_OVERRIDE;
......@@ -128,7 +128,7 @@ namespace dbp
public:
OContentFieldSelection( OListComboWizard* _pParent );
explicit OContentFieldSelection( OListComboWizard* _pParent );
virtual ~OContentFieldSelection();
virtual void dispose() SAL_OVERRIDE;
......@@ -153,7 +153,7 @@ namespace dbp
public:
OLinkFieldsPage( OListComboWizard* _pParent );
explicit OLinkFieldsPage( OListComboWizard* _pParent );
virtual ~OLinkFieldsPage();
virtual void dispose() SAL_OVERRIDE;
......@@ -175,7 +175,7 @@ namespace dbp
class OComboDBFieldPage : public ODBFieldPage
{
public:
OComboDBFieldPage( OControlWizard* _pParent );
explicit OComboDBFieldPage( OControlWizard* _pParent );
protected:
OListComboSettings& getSettings() { return static_cast<OListComboWizard*>(getDialog())->getSettings(); }
......
......@@ -41,7 +41,7 @@ namespace dbp
mxContext;
public:
OOptionGroupLayouter(
explicit OOptionGroupLayouter(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext
);
......
......@@ -38,7 +38,7 @@ namespace dbp
,public ::comphelper::OPropertyArrayUsageHelper< OUnoAutoPilot< TYPE, SERVICEINFO > >
,public OModuleResourceClient
{
OUnoAutoPilot(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB)
explicit OUnoAutoPilot(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB)
: OUnoAutoPilot_Base(_rxORB)
{
}
......
......@@ -150,7 +150,7 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService
class ModuleRes : public ::ResId
{
public:
ModuleRes(sal_uInt16 _nId) : ResId(_nId, *OModule::getResManager()) { }
explicit ModuleRes(sal_uInt16 _nId) : ResId(_nId, *OModule::getResManager()) { }
};
......
......@@ -73,7 +73,7 @@ namespace logging
sal_Int32 m_nThreshold;
protected:
ConsoleHandler( const Reference< XComponentContext >& _rxContext );
explicit ConsoleHandler( const Reference< XComponentContext >& _rxContext );
virtual ~ConsoleHandler();
// XConsoleHandler
......
......@@ -94,7 +94,7 @@ namespace logging
FileValidity m_eFileValidity;
protected:
FileHandler( const Reference< XComponentContext >& _rxContext );
explicit FileHandler( const Reference< XComponentContext >& _rxContext );
virtual ~FileHandler();
// XLogHandler
......
......@@ -120,7 +120,7 @@ namespace logging
ImplPool m_aImpl;
public:
LoggerPool( const Reference< XComponentContext >& _rxContext );
explicit LoggerPool( const Reference< XComponentContext >& _rxContext );
// XServiceInfo
virtual OUString SAL_CALL getImplementationName() throw(RuntimeException, std::exception) SAL_OVERRIDE;
......
......@@ -38,7 +38,7 @@ namespace logging
};
public:
ComponentMethodGuard( COMPONENT& _rHandler )
explicit ComponentMethodGuard( COMPONENT& _rHandler )
:m_rHandler( _rHandler )
{
m_rHandler.enterMethod( Access() );
......
......@@ -71,9 +71,9 @@ void o2u_attachCurrentThread();
class BridgeRuntimeError
{
public:
BridgeRuntimeError(const OUString& sMessage)
explicit BridgeRuntimeError(const OUString& sMessage)
: message(sMessage)
{
message = sMessage;
}
OUString message;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment