summaryrefslogtreecommitdiff
path: root/l10ntools/source/lngmerge.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/source/lngmerge.cxx')
-rw-r--r--l10ntools/source/lngmerge.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx
index 777154f57f4d..f0cdaa3ffb25 100644
--- a/l10ntools/source/lngmerge.cxx
+++ b/l10ntools/source/lngmerge.cxx
@@ -57,27 +57,27 @@ LngParser::LngParser(const OString &rLngFile)
: sSource( rLngFile )
{
std::ifstream aStream(sSource.getStr());
- if (aStream.is_open())
- {
- bool bFirstLine = true;
- std::string s;
- std::getline(aStream, s);
- while (!aStream.eof())
- {
- OString sLine(s.data(), s.length());
+ if (!aStream.is_open())
+ return;
- if( bFirstLine )
- {
- // Always remove UTF8 BOM from the first line
- lcl_RemoveUTF8ByteOrderMarker( sLine );
- bFirstLine = false;
- }
+ bool bFirstLine = true;
+ std::string s;
+ std::getline(aStream, s);
+ while (!aStream.eof())
+ {
+ OString sLine(s.data(), s.length());
- mvLines.push_back( sLine );
- std::getline(aStream, s);
+ if( bFirstLine )
+ {
+ // Always remove UTF8 BOM from the first line
+ lcl_RemoveUTF8ByteOrderMarker( sLine );
+ bFirstLine = false;
}
- mvLines.push_back( OString() );
+
+ mvLines.push_back( sLine );
+ std::getline(aStream, s);
}
+ mvLines.push_back( OString() );
}
LngParser::~LngParser()