summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-07-28 21:21:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-29 08:52:51 +0200
commit01b4c5b27f38d606b05e7a9236ec151e8039972a (patch)
treecaa3df2686d23f7c2318b1d4a3f55b175653b743 /tools
parentc97df0d704bfa5eebe573386445abfa4dcfd95b8 (diff)
cppcheck: useInitializationList in test to xmloff
Change-Id: I50545784c5412ab7767f401c6e40058a1d0bfab0 Reviewed-on: https://gerrit.libreoffice.org/58262 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/reversemap/bestreversemap.cxx4
-rw-r--r--tools/source/stream/strmwnt.cxx3
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/source/reversemap/bestreversemap.cxx b/tools/source/reversemap/bestreversemap.cxx
index 4650d21781c6..63fbd2b1cb90 100644
--- a/tools/source/reversemap/bestreversemap.cxx
+++ b/tools/source/reversemap/bestreversemap.cxx
@@ -19,10 +19,10 @@ struct Encoder
bool m_bCapable;
const char *m_pEncoding;
Encoder(rtl_TextEncoding nEncoding, const char *pEncoding)
- : m_bCapable(true)
+ : m_aConverter(rtl_createUnicodeToTextConverter(nEncoding))
+ , m_bCapable(true)
, m_pEncoding(pEncoding)
{
- m_aConverter = rtl_createUnicodeToTextConverter(nEncoding);
}
~Encoder()
{
diff --git a/tools/source/stream/strmwnt.cxx b/tools/source/stream/strmwnt.cxx
index 0dd1d2f1bd4b..74e570367ab7 100644
--- a/tools/source/stream/strmwnt.cxx
+++ b/tools/source/stream/strmwnt.cxx
@@ -42,9 +42,8 @@ class StreamData
public:
HANDLE hFile;
- StreamData()
+ StreamData() : hFile(nullptr)
{
- hFile = nullptr;
}
};