summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-21 11:44:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-21 13:57:16 +0100
commit951dbdd13100f92fb3ded20fd8d14ca645c4af37 (patch)
treeca4427650be357cfc9d21f617711b0d3c5a86cec /sfx2/source/bastyp
parent4d22eff3c1afc1294785842be163abfa263ef43b (diff)
cppcheck: noExplicitConstructor
Change-Id: I53f9965609c04fd2f0b955fd04de8fc953917344
Diffstat (limited to 'sfx2/source/bastyp')
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx14
-rw-r--r--sfx2/source/bastyp/fltlst.cxx2
-rw-r--r--sfx2/source/bastyp/progress.cxx2
3 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 96aaef36d722..8da50c8581c1 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -153,11 +153,11 @@ public:
OUString aName;
OUString aServiceName;
- SfxFilterContainer_Impl( const OUString& rName )
- : aName( rName )
- {
- aServiceName = SfxObjectShell::GetServiceNameFromFactory( rName );
- }
+ explicit SfxFilterContainer_Impl( const OUString& rName )
+ : aName( rName )
+ {
+ aServiceName = SfxObjectShell::GetServiceNameFromFactory( rName );
+ }
};
#define IMPL_FORWARD_LOOP( aMethod, ArgType, aArg ) \
@@ -263,7 +263,7 @@ public:
void InitForIterating() const;
void Update() const;
- SfxFilterMatcher_Impl(const OUString &rName)
+ explicit SfxFilterMatcher_Impl(const OUString &rName)
: aName(rName)
, pList(0)
{
@@ -290,7 +290,7 @@ namespace
private:
const OUString& mrName;
public:
- hasName(const OUString &rName) : mrName(rName) {}
+ explicit hasName(const OUString &rName) : mrName(rName) {}
bool operator() (const SfxFilterMatcher_Impl& rImpl) const
{
return rImpl.aName == mrName;
diff --git a/sfx2/source/bastyp/fltlst.cxx b/sfx2/source/bastyp/fltlst.cxx
index c6ae1f92e141..a51863e4bcf5 100644
--- a/sfx2/source/bastyp/fltlst.cxx
+++ b/sfx2/source/bastyp/fltlst.cxx
@@ -44,7 +44,7 @@ class SfxRefreshListener : public ::cppu::WeakImplHelper<com::sun::star::util::X
SfxFilterListener *m_pOwner;
public:
- SfxRefreshListener(SfxFilterListener *pOwner)
+ explicit SfxRefreshListener(SfxFilterListener *pOwner)
: m_pOwner(pOwner)
{
}
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index 6735a0c27544..c3aacf3c8ff3 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -66,7 +66,7 @@ struct SfxProgress_Impl
SfxWorkWindow* pWorkWin;
SfxViewFrame* pView;
- SfxProgress_Impl( const OUString& );
+ explicit SfxProgress_Impl( const OUString& );
void Enable_Impl( bool );
};