summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-31 18:06:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-01 10:01:44 +0200
commit9c9ff9e89fd50223b28f327d3a7e416ab0ae831f (patch)
tree8990680d8a5ab3cc961c1c3fe50313218f10c7a2 /l10ntools
parent6b851810d43e4a9ea8119d97436f658593ff8f1b (diff)
clang-tidy:readability-redundant-member-init
Change-Id: I78339f1df1f0c55c7edaa552940b07d1ada3aeb5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121386 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/po.cxx21
-rw-r--r--l10ntools/source/propmerge.cxx3
-rw-r--r--l10ntools/source/xrmmerge.cxx6
3 files changed, 8 insertions, 22 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index 2c0b4f88b254..bc4611b539ea 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -116,14 +116,7 @@ namespace
}
GenPoEntry::GenPoEntry()
- : m_sExtractCom()
- , m_sReferences( std::vector<OString>() )
- , m_sMsgCtxt( OString() )
- , m_sMsgId( OString() )
- , m_sMsgIdPlural( OString() )
- , m_sMsgStr( OString() )
- , m_sMsgStrPlural( std::vector<OString>() )
- , m_bFuzzy( false )
+ : m_bFuzzy( false )
, m_bCFormat( false )
, m_bNull( false )
{
@@ -479,14 +472,12 @@ PoHeader::~PoHeader()
}
PoOfstream::PoOfstream()
- : m_aOutPut()
- , m_bIsAfterHeader( false )
+ : m_bIsAfterHeader( false )
{
}
PoOfstream::PoOfstream(const OString& rFileName, OpenMode aMode )
- : m_aOutPut()
- , m_bIsAfterHeader( false )
+ : m_bIsAfterHeader( false )
{
open( rFileName, aMode );
}
@@ -552,14 +543,12 @@ bool lcl_CheckInputEntry(const GenPoEntry& rEntry)
}
PoIfstream::PoIfstream()
- : m_aInPut()
- , m_bEof( false )
+ : m_bEof( false )
{
}
PoIfstream::PoIfstream(const OString& rFileName)
- : m_aInPut()
- , m_bEof( false )
+ : m_bEof( false )
{
open( rFileName );
}
diff --git a/l10ntools/source/propmerge.cxx b/l10ntools/source/propmerge.cxx
index 3922d172398e..8c6da8e93b54 100644
--- a/l10ntools/source/propmerge.cxx
+++ b/l10ntools/source/propmerge.cxx
@@ -88,8 +88,7 @@ namespace
PropParser::PropParser(
const OString& rInputFile, const OString& rLang,
const bool bMergeMode )
- : m_vLines( std::vector<OString>() )
- , m_sSource( rInputFile )
+ : m_sSource( rInputFile )
, m_sLang( rLang )
, m_bIsInitialized( false )
{
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index a30feb000c3a..29efe12099b9 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -281,8 +281,7 @@ void XRMResParser::Error( const OString &rError )
XRMResExport::XRMResExport(
const OString &rOutputFile, const OString &rFilePath )
- : XRMResParser(),
- sPath( rFilePath )
+ : sPath( rFilePath )
{
pOutputStream.open( rOutputFile, PoOfstream::APP );
if (!pOutputStream.isOpen())
@@ -353,8 +352,7 @@ void XRMResExport::EndOfText(
XRMResMerge::XRMResMerge(
const OString &rMergeSource, const OString &rOutputFile,
const OString &rFilename )
- : XRMResParser(),
- sFilename( rFilename )
+ : sFilename( rFilename )
{
if (!rMergeSource.isEmpty() && sLanguage.equalsIgnoreAsciiCase("ALL"))
{