diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-22 11:38:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 08:59:20 +0200 |
commit | cb37c5f0f3de7b545231a53d46a5271058af76ad (patch) | |
tree | 8281f1ceb0363276f29526d9307ba2647679e54c /l10ntools/source | |
parent | 0f347c04bf1305c634b761f92ff487e831bc564c (diff) |
loplugin:unusedfields in jvmfwk..mysqlc
Change-Id: If9c7a3239fceba9a2db3a5905ccaa7fa9adadb08
Reviewed-on: https://gerrit.libreoffice.org/39099
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/lngmerge.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx index 513c36e13e56..540110f99822 100644 --- a/l10ntools/source/lngmerge.cxx +++ b/l10ntools/source/lngmerge.cxx @@ -49,8 +49,7 @@ void lcl_RemoveUTF8ByteOrderMarker( OString &rString ) // class LngParser LngParser::LngParser(const OString &rLngFile) - : nError( LNG_OK ) - , pLines( nullptr ) + : pLines( nullptr ) , sSource( rLngFile ) { pLines = new LngLineList; @@ -76,8 +75,6 @@ LngParser::LngParser(const OString &rLngFile) } pLines->push_back( new OString() ); } - else - nError = LNG_COULD_NOT_OPEN; } LngParser::~LngParser() @@ -166,10 +163,6 @@ bool LngParser::Merge( { std::ofstream aDestination( rDestinationFile.getStr(), std::ios_base::out | std::ios_base::trunc); - if (!aDestination.is_open()) { - nError = LNG_COULD_NOT_OPEN; - } - nError = LNG_OK; MergeDataFile aMergeDataFile( rPOFile, sSource, false, true ); if( rLanguage.equalsIgnoreAsciiCase("ALL") ) |