summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-11-24 21:23:59 +0100
committerJulien Nabet <serval2412@yahoo.fr>2019-11-24 22:46:19 +0100
commitb9448acf3ce4c1c850a691fc33686fd5165b94d9 (patch)
tree4e7f9babc2fcbe1411363f5235741e2772a02068 /sax
parentd2c9e289733df395b911a46c1028014f42e75f99 (diff)
cppcheck: performing init in init list (oox, package, sal, sax)
Change-Id: I77e28f02516ab25ff6680970dc13d52cfa90eac1 Reviewed-on: https://gerrit.libreoffice.org/83620 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/legacyfastparser.cxx5
-rw-r--r--sax/test/sax/testsax.cxx3
-rw-r--r--sax/test/saxdemo.cxx6
3 files changed, 6 insertions, 8 deletions
diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx
index 2f355c956b4c..6399e5069a44 100644
--- a/sax/source/fastparser/legacyfastparser.cxx
+++ b/sax/source/fastparser/legacyfastparser.cxx
@@ -283,10 +283,9 @@ void SAL_CALL CallbackDocumentHandler::characters( const OUString& aChars )
m_xDocumentHandler->characters( aChars );
}
-SaxLegacyFastParser::SaxLegacyFastParser( ) : m_aNamespaceHandler( new NamespaceHandler )
+SaxLegacyFastParser::SaxLegacyFastParser( ) : m_aNamespaceHandler( new NamespaceHandler ),
+ m_xParser(FastParser::create(::comphelper::getProcessComponentContext() ))
{
- m_xParser = FastParser::create(
- ::comphelper::getProcessComponentContext() );
m_xParser->setNamespaceHandler( m_aNamespaceHandler.get() );
}
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx
index 2ef67e9aae1f..06b0421c248b 100644
--- a/sax/test/sax/testsax.cxx
+++ b/sax/test/sax/testsax.cxx
@@ -236,9 +236,8 @@ class TestDocumentHandler :
{
public:
TestDocumentHandler( const Reference < XMultiServiceFactory > &r , sal_Bool bPrint )
+ : m_bPrint(bPrint), m_xSMgr(r)
{
- m_xSMgr = r;
- m_bPrint = bPrint;
}
// Error handler
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index a501294529e1..7139d60ef608 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -281,10 +281,10 @@ struct TagAttribute
TagAttribute( const OUString &s_Name,
const OUString &s_Type ,
const OUString &s_Value )
+ : sName(s_Name),
+ sType(s_Type),
+ sValue(s_Value)
{
- sName = s_Name;
- sType = s_Type;
- sValue = s_Value;
}
OUString sName;