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