[Libreoffice-commits] core.git: starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Tue Apr 7 02:54:54 PDT 2015
starmath/source/accessibility.hxx | 8 ++++----
starmath/source/cfgitem.hxx | 2 +-
starmath/source/dialog.cxx | 2 +-
starmath/source/eqnolefilehdr.hxx | 2 +-
starmath/source/mathmlexport.hxx | 2 +-
starmath/source/mathmlimport.cxx | 2 +-
starmath/source/mathmlimport.hxx | 2 +-
starmath/source/mathtype.hxx | 4 ++--
starmath/source/ooxmlimport.hxx | 2 +-
starmath/source/rtfexport.hxx | 2 +-
starmath/source/smdetect.hxx | 2 +-
starmath/source/wordexportbase.hxx | 2 +-
12 files changed, 16 insertions(+), 16 deletions(-)
New commits:
commit 9079650922e30e925a1a3ab458217eb3401ce5a7
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Tue Apr 7 10:39:42 2015 +0900
cppcheck: make ctor with 1 argument explicit
Change-Id: I4514ba75140f112d96c06167c2ed6ec0ca9aa87f
Reviewed-on: https://gerrit.libreoffice.org/15179
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx
index 9ff782f..ddac583 100644
--- a/starmath/source/accessibility.hxx
+++ b/starmath/source/accessibility.hxx
@@ -80,7 +80,7 @@ protected:
OUString GetAccessibleText_Impl();
public:
- SmGraphicAccessible( SmGraphicWindow *pGraphicWin );
+ explicit SmGraphicAccessible( SmGraphicWindow *pGraphicWin );
virtual ~SmGraphicAccessible();
SmGraphicWindow * GetWin() { return pWin; }
@@ -167,7 +167,7 @@ class SmViewForwarder :
SmViewForwarder & operator = ( const SmViewForwarder & ) SAL_DELETED_FUNCTION;
public:
- SmViewForwarder( SmEditAccessible &rAcc );
+ explicit SmViewForwarder( SmEditAccessible &rAcc );
virtual ~SmViewForwarder();
virtual bool IsValid() const SAL_OVERRIDE;
@@ -255,7 +255,7 @@ class SmEditViewForwarder : /* analog to SvxEditEngineViewForwarder */
SmEditViewForwarder & operator = ( const SmEditViewForwarder & ) SAL_DELETED_FUNCTION;
public:
- SmEditViewForwarder( SmEditAccessible& rAcc );
+ explicit SmEditViewForwarder( SmEditAccessible& rAcc );
virtual ~SmEditViewForwarder();
virtual bool IsValid() const SAL_OVERRIDE;
@@ -322,7 +322,7 @@ class SmEditAccessible :
SmEditAccessible & operator = ( const SmEditAccessible & ) SAL_DELETED_FUNCTION;
public:
- SmEditAccessible( SmEditWindow *pEditWin );
+ explicit SmEditAccessible( SmEditWindow *pEditWin );
virtual ~SmEditAccessible();
::accessibility::AccessibleTextHelper * GetTextHelper() { return pTextHelper; }
diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx
index 5b881eb..9812290 100644
--- a/starmath/source/cfgitem.hxx
+++ b/starmath/source/cfgitem.hxx
@@ -50,7 +50,7 @@ struct SmFontFormat
sal_Int16 nItalic;
SmFontFormat();
- SmFontFormat( const vcl::Font &rFont );
+ explicit SmFontFormat( const vcl::Font &rFont );
const vcl::Font GetFont() const;
bool operator == ( const SmFontFormat &rFntFmt ) const;
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 5c8e3cc..b942d2b 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -408,7 +408,7 @@ void SmFontDialog::DataChanged( const DataChangedEvent& rDCEvt )
class SaveDefaultsQuery : public MessageDialog
{
public:
- SaveDefaultsQuery(vcl::Window *pParent)
+ explicit SaveDefaultsQuery(vcl::Window *pParent)
: MessageDialog(pParent, "SaveDefaultsDialog",
"modules/smath/ui/savedefaultsdialog.ui")
{
diff --git a/starmath/source/eqnolefilehdr.hxx b/starmath/source/eqnolefilehdr.hxx
index 3a066a6..9d1587f 100644
--- a/starmath/source/eqnolefilehdr.hxx
+++ b/starmath/source/eqnolefilehdr.hxx
@@ -34,7 +34,7 @@ public:
EQNOLEFILEHDR() : nCBHdr(0),nVersion(0),
nCf(0),nCBObject(0),nReserved1(0),nReserved2(0),
nReserved3(0), nReserved4(0) {}
- EQNOLEFILEHDR(sal_uInt32 nLenMTEF) : nCBHdr(0x1c),nVersion(0x20000),
+ explicit EQNOLEFILEHDR(sal_uInt32 nLenMTEF) : nCBHdr(0x1c),nVersion(0x20000),
nCf(0xc1c6),nCBObject(nLenMTEF),nReserved1(0),nReserved2(0x0014F690),
nReserved3(0x0014EBB4), nReserved4(0) {}
diff --git a/starmath/source/mathmlexport.hxx b/starmath/source/mathmlexport.hxx
index d453640..c7f38b3 100644
--- a/starmath/source/mathmlexport.hxx
+++ b/starmath/source/mathmlexport.hxx
@@ -44,7 +44,7 @@ class SmXMLExportWrapper
bool bFlat; //set true for export to flat .mml, set false for
//export to a .sxm (or whatever) package
public:
- SmXMLExportWrapper(com::sun::star::uno::Reference<com::sun::star::frame::XModel> &rRef)
+ explicit SmXMLExportWrapper(com::sun::star::uno::Reference<com::sun::star::frame::XModel> &rRef)
: xModel(rRef), bFlat(true) {}
bool Export(SfxMedium &rMedium);
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 0691339..8ef3bfe 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -594,7 +594,7 @@ struct SmXMLContext_Helper
SmXMLImportContext rContext;
- SmXMLContext_Helper(SmXMLImportContext &rImport)
+ explicit SmXMLContext_Helper(SmXMLImportContext &rImport)
: nIsBold( -1 )
, nIsItalic( -1 )
, nFontSize( 0.0 )
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index f8d7f0a..3703f69 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -42,7 +42,7 @@ class SmXMLImportWrapper
com::sun::star::uno::Reference<com::sun::star::frame::XModel> xModel;
public:
- SmXMLImportWrapper(com::sun::star::uno::Reference<com::sun::star::frame::XModel> &rRef)
+ explicit SmXMLImportWrapper(com::sun::star::uno::Reference<com::sun::star::frame::XModel> &rRef)
: xModel(rRef) {}
sal_uLong Import(SfxMedium &rMedium);
diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx
index 4e08cd5..904a0e5 100644
--- a/starmath/source/mathtype.hxx
+++ b/starmath/source/mathtype.hxx
@@ -35,7 +35,7 @@ public:
sal_uInt8 nTface;
sal_uInt8 nStyle;
MathTypeFont() : nTface(0),nStyle(0) {}
- MathTypeFont(sal_uInt8 nFace) : nTface(nFace),nStyle(0) {}
+ explicit MathTypeFont(sal_uInt8 nFace) : nTface(nFace),nStyle(0) {}
void AppendStyleToText(OUString &rS);
};
@@ -53,7 +53,7 @@ typedef ::std::set< MathTypeFont, LessMathTypeFont > MathTypeFontSet;
class MathType
{
public:
- MathType(OUString &rIn)
+ explicit MathType(OUString &rIn)
: nVersion(0)
, nPlatform(0)
, nProduct(0)
diff --git a/starmath/source/ooxmlimport.hxx b/starmath/source/ooxmlimport.hxx
index 000d8d5..4207726 100644
--- a/starmath/source/ooxmlimport.hxx
+++ b/starmath/source/ooxmlimport.hxx
@@ -19,7 +19,7 @@
class SmOoxmlImport
{
public:
- SmOoxmlImport( oox::formulaimport::XmlStream& stream );
+ explicit SmOoxmlImport( oox::formulaimport::XmlStream& stream );
OUString ConvertToStarMath();
private:
OUString handleStream();
diff --git a/starmath/source/rtfexport.hxx b/starmath/source/rtfexport.hxx
index 0a3b0a10..7152937 100644
--- a/starmath/source/rtfexport.hxx
+++ b/starmath/source/rtfexport.hxx
@@ -20,7 +20,7 @@
class SmRtfExport : public SmWordExportBase
{
public:
- SmRtfExport(const SmNode* pIn);
+ explicit SmRtfExport(const SmNode* pIn);
bool ConvertFromStarMath(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding);
private:
virtual void HandleVerticalStack(const SmNode* pNode, int nLevel) SAL_OVERRIDE;
diff --git a/starmath/source/smdetect.hxx b/starmath/source/smdetect.hxx
index f7a274f..f777326 100644
--- a/starmath/source/smdetect.hxx
+++ b/starmath/source/smdetect.hxx
@@ -54,7 +54,7 @@ namespace com
class SmFilterDetect : public ::cppu::WeakImplHelper< css::document::XExtendedFilterDetection, css::lang::XServiceInfo >
{
public:
- SmFilterDetect( const css::uno::Reference < css::lang::XMultiServiceFactory >& xFactory );
+ explicit SmFilterDetect( const css::uno::Reference < css::lang::XMultiServiceFactory >& xFactory );
virtual ~SmFilterDetect();
SFX_DECL_XSERVICEINFO_NOFACTORY
diff --git a/starmath/source/wordexportbase.hxx b/starmath/source/wordexportbase.hxx
index ee53b12..059db4f 100644
--- a/starmath/source/wordexportbase.hxx
+++ b/starmath/source/wordexportbase.hxx
@@ -18,7 +18,7 @@
class SmWordExportBase
{
public:
- SmWordExportBase( const SmNode* pIn );
+ explicit SmWordExportBase( const SmNode* pIn );
virtual ~SmWordExportBase();
protected:
void HandleNode( const SmNode* pNode, int nLevel );
More information about the Libreoffice-commits
mailing list