diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-14 20:57:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-15 11:11:42 +0100 |
commit | 8066c73940a30e97d8634655ea39d73fa8cf3c20 (patch) | |
tree | 030b5b52d9d7e67fd21c75f8b49defb4296d3e1e /cui | |
parent | 101b616c7a2ee90b6d09eedd7a7543a63f237c97 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I2b5fba9cdd950349a8e8d22bbd7bb6e17f008920
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/macropg_impl.hxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/colorpicker.cxx | 2 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.hxx | 4 | ||||
-rw-r--r-- | cui/source/options/certpath.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/connpooloptions.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optaboutconfig.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/optcolor.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optjava.hxx | 4 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optpath.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/personalization.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/treeopt.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/tsaurls.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/webconninfo.hxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 2 |
16 files changed, 20 insertions, 20 deletions
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; |