summaryrefslogtreecommitdiff
path: root/svl/inc
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-12-04 13:47:35 +0100
committerDavid Tardon <dtardon@redhat.com>2012-12-04 14:26:30 +0100
commit54107c9b3c0e07d70b9afb7d367dea14bf98e4cd (patch)
tree216d7bbf38ee872a54a6423eee119000abf704ca /svl/inc
parenta75a79e32718f98bf1f84199c944a831bec75a6a (diff)
more explicit ctors
Change-Id: If91343890d9ed29ff2887e47c7c0a332baa5a8e1
Diffstat (limited to 'svl/inc')
-rw-r--r--svl/inc/svl/aeitem.hxx2
-rw-r--r--svl/inc/svl/cenumitm.hxx6
-rw-r--r--svl/inc/svl/eitem.hxx4
-rw-r--r--svl/inc/svl/flagitem.hxx2
-rw-r--r--svl/inc/svl/hint.hxx2
-rw-r--r--svl/inc/svl/intitem.hxx10
-rw-r--r--svl/inc/svl/macitem.hxx2
-rw-r--r--svl/inc/svl/metitem.hxx2
-rw-r--r--svl/inc/svl/poolitem.hxx6
-rw-r--r--svl/inc/svl/srchitem.hxx2
-rw-r--r--svl/inc/svl/visitem.hxx2
11 files changed, 20 insertions, 20 deletions
diff --git a/svl/inc/svl/aeitem.hxx b/svl/inc/svl/aeitem.hxx
index 9087803416a3..613fca989aa4 100644
--- a/svl/inc/svl/aeitem.hxx
+++ b/svl/inc/svl/aeitem.hxx
@@ -37,7 +37,7 @@ protected:
public:
TYPEINFO();
SfxAllEnumItem();
- SfxAllEnumItem( sal_uInt16 nWhich);
+ explicit SfxAllEnumItem( sal_uInt16 nWhich);
SfxAllEnumItem( sal_uInt16 nWhich, sal_uInt16 nVal );
SfxAllEnumItem( sal_uInt16 nWhich, SvStream &rStream );
SfxAllEnumItem( const SfxAllEnumItem & );
diff --git a/svl/inc/svl/cenumitm.hxx b/svl/inc/svl/cenumitm.hxx
index c9c2b2352ab1..47aa96800419 100644
--- a/svl/inc/svl/cenumitm.hxx
+++ b/svl/inc/svl/cenumitm.hxx
@@ -30,7 +30,7 @@ DBG_NAMEEX(SfxEnumItemInterface)
class SVL_DLLPUBLIC SfxEnumItemInterface: public SfxPoolItem
{
protected:
- SfxEnumItemInterface(sal_uInt16 which): SfxPoolItem(which) {}
+ explicit SfxEnumItemInterface(sal_uInt16 which): SfxPoolItem(which) {}
SfxEnumItemInterface(const SfxEnumItemInterface & rItem):
SfxPoolItem(rItem) {}
@@ -89,7 +89,7 @@ class SVL_DLLPUBLIC CntEnumItem: public SfxEnumItemInterface
sal_uInt16 m_nValue;
protected:
- CntEnumItem(sal_uInt16 which = 0, sal_uInt16 nTheValue = 0):
+ explicit CntEnumItem(sal_uInt16 which = 0, sal_uInt16 nTheValue = 0):
SfxEnumItemInterface(which), m_nValue(nTheValue) {}
CntEnumItem(sal_uInt16 which, SvStream & rStream);
@@ -127,7 +127,7 @@ class SVL_DLLPUBLIC CntBoolItem: public SfxPoolItem
public:
TYPEINFO();
- CntBoolItem(sal_uInt16 which = 0, sal_Bool bTheValue = sal_False):
+ explicit CntBoolItem(sal_uInt16 which = 0, sal_Bool bTheValue = sal_False):
SfxPoolItem(which), m_bValue(bTheValue) {}
CntBoolItem(sal_uInt16 nWhich, SvStream & rStream);
diff --git a/svl/inc/svl/eitem.hxx b/svl/inc/svl/eitem.hxx
index ba0139f9add9..c9c5e389132f 100644
--- a/svl/inc/svl/eitem.hxx
+++ b/svl/inc/svl/eitem.hxx
@@ -27,7 +27,7 @@
class SVL_DLLPUBLIC SfxEnumItem: public CntEnumItem
{
protected:
- SfxEnumItem(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
+ explicit SfxEnumItem(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
CntEnumItem(which, nValue) {}
SfxEnumItem(sal_uInt16 which, SvStream & rStream):
@@ -44,7 +44,7 @@ class SVL_DLLPUBLIC SfxBoolItem: public CntBoolItem
public:
TYPEINFO();
- SfxBoolItem(sal_uInt16 which = 0, sal_Bool bValue = sal_False):
+ explicit SfxBoolItem(sal_uInt16 which = 0, sal_Bool bValue = sal_False):
CntBoolItem(which, bValue) {}
SfxBoolItem(sal_uInt16 which, SvStream & rStream):
diff --git a/svl/inc/svl/flagitem.hxx b/svl/inc/svl/flagitem.hxx
index 64396cae9e4f..aa59e08cc01c 100644
--- a/svl/inc/svl/flagitem.hxx
+++ b/svl/inc/svl/flagitem.hxx
@@ -37,7 +37,7 @@ class SVL_DLLPUBLIC SfxFlagItem: public SfxPoolItem
public:
TYPEINFO();
- SfxFlagItem( sal_uInt16 nWhich = 0, sal_uInt16 nValue = 0 );
+ explicit SfxFlagItem( sal_uInt16 nWhich = 0, sal_uInt16 nValue = 0 );
SfxFlagItem( const SfxFlagItem& );
~SfxFlagItem() {
diff --git a/svl/inc/svl/hint.hxx b/svl/inc/svl/hint.hxx
index 52401e25409a..8f5356ac9a13 100644
--- a/svl/inc/svl/hint.hxx
+++ b/svl/inc/svl/hint.hxx
@@ -40,7 +40,7 @@ public:
\
public: \
TYPEINFO(); \
- Name( Type* Object, bool bOwnedByHint = false ); \
+ explicit Name( Type* Object, bool bOwnedByHint = false ); \
~Name(); \
\
Type* GetObject() const { return pObj; } \
diff --git a/svl/inc/svl/intitem.hxx b/svl/inc/svl/intitem.hxx
index 73fc9026479c..c9b9a7f79bc3 100644
--- a/svl/inc/svl/intitem.hxx
+++ b/svl/inc/svl/intitem.hxx
@@ -29,7 +29,7 @@ class SVL_DLLPUBLIC SfxByteItem: public CntByteItem
public:
TYPEINFO();
- SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0):
+ explicit SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0):
CntByteItem(which, nValue) {}
virtual SfxPoolItem * Create(SvStream & rStream, sal_uInt16) const;
@@ -48,7 +48,7 @@ class SVL_DLLPUBLIC SfxInt16Item: public SfxPoolItem
public:
TYPEINFO();
- SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0):
+ explicit SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0):
SfxPoolItem(which), m_nValue(nTheValue)
{ DBG_CTOR(SfxInt16Item, 0); }
@@ -106,7 +106,7 @@ class SVL_DLLPUBLIC SfxUInt16Item: public CntUInt16Item
public:
TYPEINFO();
- SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
+ explicit SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
CntUInt16Item(which, nValue) {}
SfxUInt16Item(sal_uInt16 which, SvStream & rStream):
@@ -125,7 +125,7 @@ class SVL_DLLPUBLIC SfxInt32Item: public CntInt32Item
public:
TYPEINFO();
- SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0):
+ explicit SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0):
CntInt32Item(which, nValue) {}
SfxInt32Item(sal_uInt16 which, SvStream & rStream):
@@ -145,7 +145,7 @@ class SVL_DLLPUBLIC SfxUInt32Item: public CntUInt32Item
public:
TYPEINFO();
- SfxUInt32Item(sal_uInt16 which = 0, sal_uInt32 nValue = 0):
+ explicit SfxUInt32Item(sal_uInt16 which = 0, sal_uInt32 nValue = 0):
CntUInt32Item(which, nValue) {}
SfxUInt32Item(sal_uInt16 which, SvStream & rStream):
diff --git a/svl/inc/svl/macitem.hxx b/svl/inc/svl/macitem.hxx
index 68d69162041c..712e072a0f15 100644
--- a/svl/inc/svl/macitem.hxx
+++ b/svl/inc/svl/macitem.hxx
@@ -160,7 +160,7 @@ class SVL_DLLPUBLIC SvxMacroItem: public SfxPoolItem
public:
TYPEINFO();
- inline SvxMacroItem ( const sal_uInt16 nId /*= ITEMID_MACRO*/ );
+ explicit inline SvxMacroItem ( const sal_uInt16 nId /*= ITEMID_MACRO*/ );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
diff --git a/svl/inc/svl/metitem.hxx b/svl/inc/svl/metitem.hxx
index b3099d1bd8c0..090d95450159 100644
--- a/svl/inc/svl/metitem.hxx
+++ b/svl/inc/svl/metitem.hxx
@@ -30,7 +30,7 @@ class SVL_DLLPUBLIC SfxMetricItem: public SfxInt32Item
{
public:
TYPEINFO();
- SfxMetricItem( sal_uInt16 nWhich = 0, sal_uInt32 nValue = 0 );
+ explicit SfxMetricItem( sal_uInt16 nWhich = 0, sal_uInt32 nValue = 0 );
SfxMetricItem( sal_uInt16 nWhich, SvStream & );
SfxMetricItem( const SfxMetricItem& );
~SfxMetricItem() {
diff --git a/svl/inc/svl/poolitem.hxx b/svl/inc/svl/poolitem.hxx
index 4d60a354795a..4c899f64f91d 100644
--- a/svl/inc/svl/poolitem.hxx
+++ b/svl/inc/svl/poolitem.hxx
@@ -187,7 +187,7 @@ private:
SVL_DLLPRIVATE long Delete_Impl(void*);
protected:
- SfxPoolItem( sal_uInt16 nWhich = 0 );
+ explicit SfxPoolItem( sal_uInt16 nWhich = 0 );
SfxPoolItem( const SfxPoolItem& );
public:
@@ -341,7 +341,7 @@ class SVL_DLLPUBLIC SfxVoidItem: public SfxPoolItem
SfxVoidItem & operator=( const SfxVoidItem& ); // not implemented.
public:
TYPEINFO();
- SfxVoidItem( sal_uInt16 nWhich );
+ explicit SfxVoidItem( sal_uInt16 nWhich );
SfxVoidItem( sal_uInt16 nWhich, SvStream & );
SfxVoidItem( const SfxVoidItem& );
~SfxVoidItem();
@@ -401,7 +401,7 @@ class SVL_DLLPUBLIC SfxItemHandle
sal_uInt16 *pRef;
SfxPoolItem *pItem;
public:
- SfxItemHandle( SfxPoolItem& );
+ explicit SfxItemHandle( SfxPoolItem& );
SfxItemHandle( const SfxItemHandle& );
~SfxItemHandle();
diff --git a/svl/inc/svl/srchitem.hxx b/svl/inc/svl/srchitem.hxx
index 0e83ebcfd0bc..7504e421a567 100644
--- a/svl/inc/svl/srchitem.hxx
+++ b/svl/inc/svl/srchitem.hxx
@@ -78,7 +78,7 @@ class SVL_DLLPUBLIC SvxSearchItem :
public:
TYPEINFO();
- SvxSearchItem( const sal_uInt16 nId );
+ explicit SvxSearchItem( const sal_uInt16 nId );
SvxSearchItem( const SvxSearchItem& rItem );
virtual ~SvxSearchItem();
diff --git a/svl/inc/svl/visitem.hxx b/svl/inc/svl/visitem.hxx
index f58ae6ba1cc9..942b43009f73 100644
--- a/svl/inc/svl/visitem.hxx
+++ b/svl/inc/svl/visitem.hxx
@@ -35,7 +35,7 @@ class SVL_DLLPUBLIC SfxVisibilityItem: public SfxPoolItem
public:
TYPEINFO();
- SfxVisibilityItem(sal_uInt16 which = 0, sal_Bool bVisible = sal_True):
+ explicit SfxVisibilityItem(sal_uInt16 which = 0, sal_Bool bVisible = sal_True):
SfxPoolItem(which)
{
m_nValue.bVisible = bVisible;