Kaydet (Commit) 8a3120ce authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: noExplicitConstructor

Change-Id: Id6291335945a8f10cef3afd1a2b3bae65fdf4562
üst ddaca012
......@@ -154,7 +154,7 @@ public:
class LwpDrawGroup : public LwpDrawObj
{
public:
LwpDrawGroup(SvStream* pStream) : LwpDrawObj(pStream) {}
explicit LwpDrawGroup(SvStream* pStream) : LwpDrawObj(pStream) {}
virtual ~LwpDrawGroup() {}
protected:
......@@ -305,7 +305,7 @@ private:
SdwPoint m_aVector;
public:
LwpDrawTextBox(SvStream* pStream);
explicit LwpDrawTextBox(SvStream* pStream);
virtual ~LwpDrawTextBox();
static void SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord* pRec);
......@@ -348,7 +348,7 @@ protected:
class LwpDrawMetafile : public LwpDrawObj
{
public:
LwpDrawMetafile(SvStream* pStream);
explicit LwpDrawMetafile(SvStream* pStream);
virtual ~LwpDrawMetafile() {}
protected:
......@@ -371,7 +371,7 @@ private:
SdwBmpRecord m_aBmpRec;
sal_uInt8* m_pImageData;
public:
LwpDrawBitmap(SvStream* pStream);
explicit LwpDrawBitmap(SvStream* pStream);
virtual ~LwpDrawBitmap();
protected:
......
......@@ -105,7 +105,7 @@ class LwpFribFootnote: public LwpFrib
{
public:
LwpFribFootnote(LwpPara* pPara );
explicit LwpFribFootnote(LwpPara* pPara );
virtual ~LwpFribFootnote(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
void RegisterNewStyle();
......
......@@ -76,7 +76,7 @@ Mar 2005 Created
class LwpFrame
{
public:
LwpFrame(LwpPlacableLayout* pLayout);
explicit LwpFrame(LwpPlacableLayout* pLayout);
~LwpFrame();
void RegisterStyle(XFFrameStyle* pFrameStyle);
void Parse(XFFrame* pXFFrame, sal_Int32 nPageNo = 0);
......
......@@ -91,11 +91,10 @@ class LwpHyperlinkMgr;
class LwpFrib
{
public:
LwpFrib(LwpPara* pPara);
explicit LwpFrib(LwpPara* pPara);
virtual ~LwpFrib();
static LwpFrib* CreateFrib(LwpPara* pPara, LwpObjectStream* pObjStrm, sal_uInt8 fribtag, sal_uInt8 editID);
virtual void Read(LwpObjectStream* pObjStrm, sal_uInt16 len);
// virtual void Parse(IXFStream* pOutputStream);
LwpFrib* GetNext(){return m_pNext;}
void SetNext(LwpFrib* next){m_pNext = next;}
sal_uInt8 GetType() { return m_nFribType;}
......
......@@ -72,7 +72,7 @@
class LwpFribPageBreak: public LwpFrib
{
public:
LwpFribPageBreak( LwpPara* pPara );
explicit LwpFribPageBreak( LwpPara* pPara );
virtual ~LwpFribPageBreak();
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
void RegisterBreakStyle(LwpPara* pPara);
......@@ -90,14 +90,14 @@ private:
class LwpFribLineBreak: public LwpFrib
{
public:
LwpFribLineBreak( LwpPara* pPara ) : LwpFrib(pPara){}
explicit LwpFribLineBreak( LwpPara* pPara ) : LwpFrib(pPara){}
virtual ~LwpFribLineBreak(){}
};
class LwpFribColumnBreak: public LwpFrib
{
public:
LwpFribColumnBreak( LwpPara* pPara ) : LwpFrib(pPara){}
explicit LwpFribColumnBreak( LwpPara* pPara ) : LwpFrib(pPara){}
virtual ~LwpFribColumnBreak(){}
void RegisterBreakStyle(LwpPara* pPara);
};
......
......@@ -71,7 +71,7 @@
class LwpFribFrame : public LwpFrib
{
public:
LwpFribFrame( LwpPara* pPara) : LwpFrib(pPara){}
explicit LwpFribFrame( LwpPara* pPara) : LwpFrib(pPara){}
virtual ~LwpFribFrame(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
rtl::Reference<LwpObject> GetLayout();
......
......@@ -74,7 +74,7 @@
class LwpFribCHBlock : public LwpFrib
{
public:
LwpFribCHBlock( LwpPara* pPara )
explicit LwpFribCHBlock( LwpPara* pPara )
: LwpFrib(pPara)
, m_nType(0)
{}
......@@ -92,7 +92,7 @@ private:
class LwpFribBookMark : public LwpFrib
{
public:
LwpFribBookMark( LwpPara* pPara );
explicit LwpFribBookMark( LwpPara* pPara );
virtual ~LwpFribBookMark(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
LwpObjectID GetMarkerID(){return m_objMarker;}
......@@ -110,7 +110,7 @@ private:
class LwpFribField : public LwpFrib
{
public:
LwpFribField( LwpPara* pPara );
explicit LwpFribField( LwpPara* pPara );
virtual ~LwpFribField(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
LwpFieldMark* GetMarker();
......@@ -151,7 +151,7 @@ private:
class LwpFribRubyMarker : public LwpFrib
{
public:
LwpFribRubyMarker( LwpPara* pPara );
explicit LwpFribRubyMarker( LwpPara* pPara );
virtual ~LwpFribRubyMarker(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
LwpRubyMarker* GetMarker();
......
......@@ -111,7 +111,7 @@ class XFIndex;
class LwpFribSection: public LwpFrib
{
public:
LwpFribSection(LwpPara* pPara );
explicit LwpFribSection(LwpPara* pPara );
virtual ~LwpFribSection();
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
LwpSection * GetSection();
......
......@@ -62,7 +62,7 @@ class LwpSuperTableLayout;
class LwpFribTable : public LwpFrib
{
public:
LwpFribTable( LwpPara* pPara ) : LwpFrib(pPara){}
explicit LwpFribTable( LwpPara* pPara ) : LwpFrib(pPara){}
virtual ~LwpFribTable(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
LwpSuperTableLayout* GetSuperTable();
......
......@@ -83,22 +83,21 @@ public:
class LwpFribHardSpace : public LwpFrib
{
public:
LwpFribHardSpace( LwpPara* pPara ) : LwpFrib(pPara){}
explicit LwpFribHardSpace( LwpPara* pPara ) : LwpFrib(pPara){}
virtual ~LwpFribHardSpace(){}
};
class LwpFribSoftHyphen : public LwpFrib
{
public:
LwpFribSoftHyphen( LwpPara* pPara ) : LwpFrib(pPara){}
explicit LwpFribSoftHyphen( LwpPara* pPara ) : LwpFrib(pPara){}
virtual ~LwpFribSoftHyphen(){}
};
//add by , 02/03/2005
class LwpFribParaNumber : public LwpFrib
{
public:
LwpFribParaNumber( LwpPara* pPara ) : LwpFrib(pPara),
explicit LwpFribParaNumber( LwpPara* pPara ) : LwpFrib(pPara),
m_nStyleID(0), m_nNumberChar(0), m_nLevel(1), m_nStart(0){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
......@@ -136,7 +135,7 @@ inline sal_uInt16 LwpFribParaNumber::GetStart() const
class LwpFribDocVar : public LwpFrib
{
public:
LwpFribDocVar( LwpPara* pPara );
explicit LwpFribDocVar( LwpPara* pPara );
virtual ~LwpFribDocVar();
......@@ -146,8 +145,6 @@ public:
void XFConvert(XFContentContainer* pXFPara);//add by ,05/5/27
// inline sal_uInt16 GetType() const;
enum {
FILENAME = 0x02,
PATH = 0x03,
......@@ -186,22 +183,18 @@ private:
void RegisterDefaultTimeStyle();
void RegisterTotalTimeStyle();
};
//inline sal_uInt16 LwpFribDocVar::GetType() const
//{
// return m_nType;
//}
class LwpFribTab : public LwpFrib
{
public:
LwpFribTab( LwpPara* pPara ) : LwpFrib(pPara){}
explicit LwpFribTab( LwpPara* pPara ) : LwpFrib(pPara){}
virtual ~LwpFribTab(){}
};
class LwpFribUnicode: public LwpFrib
{
public:
LwpFribUnicode( LwpPara* pPara ) : LwpFrib(pPara){}
explicit LwpFribUnicode( LwpPara* pPara ) : LwpFrib(pPara){}
virtual ~LwpFribUnicode(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
void XFConvert(XFContentContainer* pXFPara,LwpStory* pStory);
......@@ -214,7 +207,7 @@ public:
class LwpFribPageNumber : public LwpFrib
{
public:
LwpFribPageNumber(LwpPara* pPara) : LwpFrib(pPara),
explicit LwpFribPageNumber(LwpPara* pPara) : LwpFrib(pPara),
m_nNumStyle(0), m_nStartNum(1), m_nStartOnPage(1), m_nFlag(0){}
virtual ~LwpFribPageNumber(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
......
......@@ -90,7 +90,7 @@ public:
OUString GetEditorName(sal_uInt8 nID);
XFColor GetHighlightColor(sal_uInt8 nID);
private:
LwpGlobalMgr(LwpSvStream* pSvStream);
explicit LwpGlobalMgr(LwpSvStream* pSvStream);
private:
static std::map< sal_uInt32,LwpGlobalMgr* > m_ThreadMap;
LwpObjectFactory* m_pObjFactory;
......
......@@ -75,7 +75,7 @@
class LwpLineNumberOptions
{
public:
LwpLineNumberOptions(LwpObjectStream* pStrm);
explicit LwpLineNumberOptions(LwpObjectStream* pStrm);
~LwpLineNumberOptions(){}
protected:
sal_uInt16 m_nType;
......
......@@ -74,7 +74,7 @@
class LwpFribNote: public LwpFrib
{
public:
LwpFribNote(LwpPara* pPara );
explicit LwpFribNote(LwpPara* pPara );
virtual ~LwpFribNote(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
void RegisterNewStyle();
......
......@@ -102,7 +102,7 @@ struct LwpCurrencyInfo
OUString sSymbol;
bool bPost;
bool bShowSpace;
LwpCurrencyInfo(const OUString& sSym)
explicit LwpCurrencyInfo(const OUString& sSym)
{
sSymbol = sSym;
bPost = false;
......@@ -248,7 +248,7 @@ private:
class LwpNumericFormat
{
public:
LwpNumericFormat(LwpObjectStream * pStrm);
explicit LwpNumericFormat(LwpObjectStream * pStrm);
~LwpNumericFormat(){}
void Read();
static bool IsCurrencyFormat(sal_uInt16 Format);
......
......@@ -83,9 +83,8 @@
class LwpObjectFactory
{
public:
LwpObjectFactory(LwpSvStream* pSvStream);
explicit LwpObjectFactory(LwpSvStream* pSvStream);
public:
// static LwpObjectFactory* Instance(LwpSvStream* pSvStream=NULL);
~LwpObjectFactory();
//For object Factory and object manager
......
......@@ -115,8 +115,7 @@ inline LwpParaProperty* LwpParaProperty::GetPrevious()
class LwpParaAlignProperty : public LwpParaProperty
{
public:
// LwpParaAlignProperty(LwpParaAlignProperty* pOther);
LwpParaAlignProperty(LwpObjectStream* pFile);
explicit LwpParaAlignProperty(LwpObjectStream* pFile);
virtual ~LwpParaAlignProperty();
LwpAlignmentOverride* GetAlignment();
sal_uInt32 GetType() SAL_OVERRIDE;
......@@ -133,7 +132,7 @@ inline LwpAlignmentOverride* LwpParaAlignProperty::GetAlignment()
class LwpParaIndentProperty : public LwpParaProperty
{
public:
LwpParaIndentProperty(LwpObjectStream* pFile);
explicit LwpParaIndentProperty(LwpObjectStream* pFile);
virtual ~LwpParaIndentProperty();
LwpIndentOverride* GetIndent();
sal_uInt32 GetType() SAL_OVERRIDE;
......@@ -155,7 +154,7 @@ inline LwpIndentOverride* LwpParaIndentProperty::GetIndent()
class LwpParaSpacingProperty : public LwpParaProperty
{
public:
LwpParaSpacingProperty(LwpObjectStream* pFile);
explicit LwpParaSpacingProperty(LwpObjectStream* pFile);
virtual ~LwpParaSpacingProperty();
LwpSpacingOverride* GetSpacing();
sal_uInt32 GetType() SAL_OVERRIDE;
......@@ -173,7 +172,7 @@ class LwpParaBorderOverride;
class LwpParaBorderProperty : public LwpParaProperty
{
public:
LwpParaBorderProperty(LwpObjectStream* pStrm);
explicit LwpParaBorderProperty(LwpObjectStream* pStrm);
sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_BORDER; }
......@@ -191,7 +190,7 @@ inline LwpParaBorderOverride* LwpParaBorderProperty::GetLocalParaBorder()
class LwpParaBreaksProperty : public LwpParaProperty
{
public:
LwpParaBreaksProperty(LwpObjectStream* pStrm);
explicit LwpParaBreaksProperty(LwpObjectStream* pStrm);
sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_BREAKS; }
......@@ -210,7 +209,7 @@ inline LwpBreaksOverride* LwpParaBreaksProperty::GetLocalParaBreaks()
class LwpParaBulletProperty : public LwpParaProperty
{
public:
LwpParaBulletProperty(LwpObjectStream* pStrm);
explicit LwpParaBulletProperty(LwpObjectStream* pStrm);
virtual ~LwpParaBulletProperty();
......@@ -230,7 +229,7 @@ inline LwpBulletOverride* LwpParaBulletProperty::GetLocalParaBullet()
class LwpParaNumberingProperty : public LwpParaProperty
{
public:
LwpParaNumberingProperty(LwpObjectStream* pStrm);
explicit LwpParaNumberingProperty(LwpObjectStream* pStrm);
sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_NUMBERING; }
......@@ -247,7 +246,7 @@ inline LwpNumberingOverride* LwpParaNumberingProperty::GetLocalNumbering() const
class LwpParaTabRackProperty : public LwpParaProperty
{
public:
LwpParaTabRackProperty(LwpObjectStream* pStrm);
explicit LwpParaTabRackProperty(LwpObjectStream* pStrm);
virtual ~LwpParaTabRackProperty();
sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_TABRACK; }
......@@ -265,7 +264,7 @@ inline LwpTabOverride* LwpParaTabRackProperty::GetTab()
class LwpParaBackGroundProperty : public LwpParaProperty
{
public:
LwpParaBackGroundProperty(LwpObjectStream* pFile);
explicit LwpParaBackGroundProperty(LwpObjectStream* pFile);
virtual ~LwpParaBackGroundProperty();
LwpBackgroundOverride* GetBackground();
sal_uInt32 GetType() SAL_OVERRIDE;
......
......@@ -74,7 +74,7 @@
class LwpPrinterInfo
{
public:
LwpPrinterInfo(LwpObjectStream* pStrm);
explicit LwpPrinterInfo(LwpObjectStream* pStrm);
~LwpPrinterInfo(){}
private:
LwpAtomHolder m_OutputFile;
......
......@@ -68,7 +68,7 @@ class LwpSLVList
{
public:
LwpSLVList(){}
LwpSLVList(LwpObjectStream* pStrm){Read(pStrm);}
explicit LwpSLVList(LwpObjectStream* pStrm){Read(pStrm);}
public:
void Read(LwpObjectStream* pStrm)
{
......
......@@ -88,7 +88,7 @@ class LwpSortOption
{
public:
LwpSortOption(){}
LwpSortOption(LwpObjectStream* pStrm);
explicit LwpSortOption(LwpObjectStream* pStrm);
~LwpSortOption(){}
public:
void Read(LwpObjectStream *pStrm);
......
......@@ -122,7 +122,7 @@ public:
class LwpFormulaConst:public LwpFormulaArg
{
public:
LwpFormulaConst( double dVal);
explicit LwpFormulaConst( double dVal);
virtual OUString ToString(LwpTableLayout* pCellsMap) SAL_OVERRIDE;
private:
double m_dVal;
......@@ -131,7 +131,7 @@ private:
class LwpFormulaText:public LwpFormulaArg
{
public:
LwpFormulaText( const OUString& aText);
explicit LwpFormulaText( const OUString& aText);
virtual OUString ToString(LwpTableLayout* /*pCellsMap*/) SAL_OVERRIDE {return m_aText;}
private:
OUString m_aText;
......@@ -167,7 +167,7 @@ private:
class LwpFormulaFunc :public LwpFormulaArg
{
public:
LwpFormulaFunc(sal_uInt16 nTokenType);
explicit LwpFormulaFunc(sal_uInt16 nTokenType);
virtual ~LwpFormulaFunc();
void AddArg(LwpFormulaArg* pArg);
......@@ -183,14 +183,14 @@ protected:
class LwpFormulaOp : public LwpFormulaFunc
{
public:
LwpFormulaOp(sal_uInt16 nTokenType):LwpFormulaFunc(nTokenType){;}
explicit LwpFormulaOp(sal_uInt16 nTokenType):LwpFormulaFunc(nTokenType){;}
virtual OUString ToString(LwpTableLayout* pCellsMap) SAL_OVERRIDE;
};
class LwpFormulaUnaryOp : public LwpFormulaFunc
{
public:
LwpFormulaUnaryOp(sal_uInt16 nTokenType):LwpFormulaFunc(nTokenType){;}
explicit LwpFormulaUnaryOp(sal_uInt16 nTokenType):LwpFormulaFunc(nTokenType){;}
virtual OUString ToString(LwpTableLayout* pCellsMap) SAL_OVERRIDE;
};
......
......@@ -132,7 +132,7 @@ public:
class LwpUIDocument
{
public:
LwpUIDocument(LwpObjectStream *pStrm);
explicit LwpUIDocument(LwpObjectStream *pStrm);
~LwpUIDocument();
private:
LwpNamedProperties m_NamedProps;
......
......@@ -74,7 +74,7 @@ class LwpUserDictFiles
{
public:
LwpUserDictFiles(){}
LwpUserDictFiles(LwpObjectStream *pStrm);
explicit LwpUserDictFiles(LwpObjectStream *pStrm);
~LwpUserDictFiles(){}
static void Read(LwpObjectStream *pStrm);
};
......
......@@ -61,7 +61,7 @@ namespace OpenStormBento
class CBenTOCReader
{
public: // Methods
CBenTOCReader(pLtcBenContainer pContainer)
explicit CBenTOCReader(pLtcBenContainer pContainer)
: cpContainer(pContainer)
, cpTOC(NULL)
, cBlockSize(0)
......
......@@ -72,8 +72,8 @@ public: // Methods
: cpNext(NULL)
, cpPrev(NULL)
{}
CUtListElmt(pCUtListElmt pPrev) { InsertAfter(pPrev); }
CUtListElmt(pCUtList pList);
explicit CUtListElmt(pCUtListElmt pPrev) { InsertAfter(pPrev); }
explicit CUtListElmt(pCUtList pList);
virtual ~CUtListElmt();
void Remove()
{
......@@ -105,9 +105,9 @@ class CUtComparableListElmt : public CUtListElmt
{
public: // Methods
CUtComparableListElmt() { ; }
CUtComparableListElmt(pCUtComparableListElmt pPrev) :
explicit CUtComparableListElmt(pCUtComparableListElmt pPrev) :
CUtListElmt(pPrev) { ; }
CUtComparableListElmt(pCUtList pList) : CUtListElmt(pList) { ; }
explicit CUtComparableListElmt(pCUtList pList) : CUtListElmt(pList) { ; }
public: // Pure virtual methods
};
......
......@@ -69,7 +69,7 @@
class XFBookmark : public XFContent
{
public:
XFBookmark(bool isStart)
explicit XFBookmark(bool isStart)
{
m_bStart = isStart;
}
......
......@@ -70,7 +70,7 @@ class XFBreaks
public:
XFBreaks();
XFBreaks(enumXFBreaks breaks);
explicit XFBreaks(enumXFBreaks breaks);
public:
/**
......
......@@ -78,7 +78,7 @@ public:
{
m_bValid = true;
}
XFColor(sal_uInt32 color)
explicit XFColor(sal_uInt32 color)
{
unsigned int c = color&0x00ffffff;
unsigned int temp = c;
......
......@@ -80,7 +80,7 @@ class XFFrame : public XFContentContainer
{
public:
XFFrame();
XFFrame(bool isTextBox);
explicit XFFrame(bool isTextBox);
virtual ~XFFrame();
......
......@@ -81,7 +81,7 @@ class IXFAttrList;
class XFSaxStream : public IXFStream
{
public:
XFSaxStream(css::uno::Reference<css::xml::sax::XDocumentHandler>& xHandler);
explicit XFSaxStream(css::uno::Reference<css::xml::sax::XDocumentHandler>& xHandler);
virtual ~XFSaxStream();
......
......@@ -85,7 +85,7 @@ class XFStyleContainer
public:
XFStyleContainer(){}
XFStyleContainer(const OUString& strStyleNamePrefix);
explicit XFStyleContainer(const OUString& strStyleNamePrefix);
XFStyleContainer(const XFStyleContainer& other);
......
......@@ -71,7 +71,7 @@ class XFTextContent : public XFContent
public:
XFTextContent(){}
XFTextContent(const OUString& text);
explicit XFTextContent(const OUString& text);
virtual ~XFTextContent();
......
......@@ -64,7 +64,7 @@ namespace connectivity
public:
inline const OConnection& getOwnConnection() const { return m_rConnection; }
ODatabaseMetaData(OConnection& _rCon);
explicit ODatabaseMetaData(OConnection& _rCon);
virtual ~ODatabaseMetaData();
// as I mentioned before this interface is really BIG
......
......@@ -22,7 +22,7 @@ class SwContent
public:
int x;
SwContent(int x_) : x(x_) {}
explicit SwContent(int x_) : x(x_) {}
bool operator<( const SwContent &rCmp) const
{
......
......@@ -31,7 +31,7 @@ class OChildDispListener_Impl : public ::cppu::WeakImplHelper1 < ::com::sun::sta
OStorage* m_pStorage;
public:
OChildDispListener_Impl( OStorage& aStorage );
explicit OChildDispListener_Impl( OStorage& aStorage );
virtual ~OChildDispListener_Impl();
void OwnerIsDisposed();
......
......@@ -70,7 +70,7 @@ public:
, m_xOwnStorage( xStorage )
{}
OHierarchyElement_Impl( const ::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage >& xWeakStorage )
explicit OHierarchyElement_Impl( const ::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage >& xWeakStorage )
: m_rParent( NULL )
, m_xWeakOwnStorage( xWeakStorage )
{}
......@@ -112,7 +112,7 @@ class OHierarchyHolder_Impl : public ::cppu::OWeakObject
::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage > m_xWeakOwnStorage;
::rtl::Reference< OHierarchyElement_Impl > m_xChild;
public:
OHierarchyHolder_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xOwnStorage )
explicit OHierarchyHolder_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xOwnStorage )
: m_xWeakOwnStorage( xOwnStorage )
, m_xChild( new OHierarchyElement_Impl( ::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage >( xOwnStorage ) ) )
{}
......
......@@ -31,7 +31,7 @@ class OStorageFactory : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
public:
OStorageFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext )
explicit OStorageFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext )
: m_xContext( xContext )
{
OSL_ENSURE( xContext.is(), "No service manager is provided!\n" );
......
......@@ -103,7 +103,7 @@ struct StorageHolder_Impl
OStorage* m_pPointer;
::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage > m_xWeakRef;
inline StorageHolder_Impl( OStorage* pStorage );
explicit inline StorageHolder_Impl( OStorage* pStorage );
StorageHolder_Impl( const StorageHolder_Impl& aSH )
: m_pPointer( aSH.m_pPointer )
......
......@@ -189,7 +189,7 @@ public:
sal_uInt16 m_numOfStrings;
sal_uInt16 m_stringsCopied;
StringCache(sal_uInt16 size); // throws std::bad_alloc
explicit StringCache(sal_uInt16 size); // throws std::bad_alloc
~StringCache();
const sal_Unicode* getString(sal_uInt16 index);
......
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