summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-13 21:13:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-13 22:42:35 +0100
commit35fd0cf311d0ab6e647ef8a244f350d8a690e734 (patch)
tree2e27440530f16dc3d2261aff06c0570519a7a8ef /sot
parentd8160fa8343a395cff0116286dd24894b076c02b (diff)
cppcheck: noExplicitConstructor
Change-Id: I39194062ba68c4cb1ccc9b93c629f005ccd02497
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/object.cxx8
-rw-r--r--sot/source/sdstor/storage.cxx16
-rw-r--r--sot/source/sdstor/ucbstorage.cxx2
3 files changed, 13 insertions, 13 deletions
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index 88e457e4bd8e..7c1054c5e97b 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -24,12 +24,12 @@
class SotObjectFactory : public SotFactory
{
public:
- SotObjectFactory( const SvGlobalName & rName )
- : SotFactory( rName )
- {}
+ explicit SotObjectFactory(const SvGlobalName& rName)
+ : SotFactory( rName )
+ {
+ }
};
-
SotFactory * SotObject::ClassFactory()
{
SotFactory **ppFactory = GetFactoryAdress();
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 9a23f5f17933..d22db40c8084 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -44,12 +44,12 @@ using namespace ::com::sun::star;
class SotStorageStreamFactory : public SotFactory
{
public:
- SotStorageStreamFactory( const SvGlobalName & rName )
- : SotFactory( rName )
- {}
+ explicit SotStorageStreamFactory(const SvGlobalName& rName)
+ : SotFactory(rName)
+ {
+ }
};
-
SotFactory * SotStorageStream::ClassFactory()
{
SotFactory **ppFactory = GetFactoryAdress();
@@ -293,12 +293,12 @@ bool SotStorageStream::SetProperty( const OUString& rName, const ::com::sun::sta
class SotStorageFactory : public SotFactory
{
public:
- SotStorageFactory( const SvGlobalName & rName )
- : SotFactory( rName )
- {}
+ explicit SotStorageFactory(const SvGlobalName & rName)
+ : SotFactory(rName)
+ {
+ }
};
-
SotFactory * SotStorage::ClassFactory()
{
SotFactory **ppFactory = GetFactoryAdress();
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 77ac24956701..d6321fd797bb 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -90,7 +90,7 @@ protected:
SvStream* m_pSvStream;
public:
- FileStreamWrapper_Impl( const OUString& rName );
+ explicit FileStreamWrapper_Impl(const OUString& rName);
virtual ~FileStreamWrapper_Impl();
virtual void SAL_CALL seek( sal_Int64 _nLocation ) throw ( IllegalArgumentException, IOException, RuntimeException, std::exception) SAL_OVERRIDE;