summaryrefslogtreecommitdiff
path: root/hwpfilter/source
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source')
-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 );
}