summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-11-24 20:26:22 +0100
committerJulien Nabet <serval2412@yahoo.fr>2019-11-24 21:46:23 +0100
commitd2c9e289733df395b911a46c1028014f42e75f99 (patch)
tree49911788e81a04eb88de9159dbd2b6446f4655ba /hwpfilter
parent17c3d827e12d9ca99b869132f23ba212b11f909a (diff)
cppcheck: performing init in init list (hwpfilter, i., l.)
Change-Id: Idf5b7be45d48076fbe191fbf1a2fa63c6da71902 Reviewed-on: https://gerrit.libreoffice.org/83617 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/attributes.cxx4
-rw-r--r--hwpfilter/source/hwpreader.cxx4
2 files changed, 2 insertions, 6 deletions
diff --git a/hwpfilter/source/attributes.cxx b/hwpfilter/source/attributes.cxx
index f9e33b1f40f7..1c0712b0f9ab 100644
--- a/hwpfilter/source/attributes.cxx
+++ b/hwpfilter/source/attributes.cxx
@@ -27,10 +27,8 @@ namespace {
struct TagAttribute
{
TagAttribute( const OUString &rName, const OUString &rType , const OUString &rValue )
+ : sName(rName), sType(rType), sValue(rValue)
{
- sName = rName;
- sType = rType;
- sValue = rValue;
}
OUString sName;
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index 51f072fed4ad..58eab6a8ed84 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -105,10 +105,8 @@ struct HwpReaderPrivate
int nPnPos;
};
-HwpReader::HwpReader()
+HwpReader::HwpReader() : mxList(new AttributeListImpl), d(new HwpReaderPrivate)
{
- mxList = new AttributeListImpl;
- d.reset( new HwpReaderPrivate );
}