diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-06-17 11:44:23 +0200 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-06-17 13:06:57 +0200 |
commit | 47a23789b7aed7fed8da2cf737bc4dd1070e32bf (patch) | |
tree | 9d39210c4390a5aa3880abd5b6695d0a4d19de7d /l10ntools/source | |
parent | 5acbffd03f5943354832f10e1bd2232c4774d8fb (diff) |
l10ntools: getLength() -> isEmpty()
Change-Id: I9272c244e22d87fbd2547f4fcb6b94493ffaad3a
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/cfgmerge.cxx | 6 | ||||
-rw-r--r-- | l10ntools/source/export.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx index 98778a78b19e..63f4a8f01acf 100644 --- a/l10ntools/source/cfgmerge.cxx +++ b/l10ntools/source/cfgmerge.cxx @@ -356,7 +356,7 @@ CfgExport::~CfgExport() void CfgExport::WorkOnResourceEnd() { if ( bLocalize ) { - if ( pStackData->sText[OString(RTL_CONSTASCII_STRINGPARAM("en-US"))].getLength() ) + if ( !pStackData->sText["en-US"].isEmpty() ) { OString sXComment = pStackData->sText[OString(RTL_CONSTASCII_STRINGPARAM("x-comment"))]; OString sLocalId = pStackData->sIdentifier; @@ -385,7 +385,7 @@ void CfgExport::WorkOnText( const OString &rIsoLang ) { - if( rIsoLang.getLength() ) rText = helper::UnQuotHTML( rText ); + if( !rIsoLang.isEmpty() ) rText = helper::UnQuotHTML( rText ); } @@ -409,7 +409,7 @@ CfgMerge::CfgMerge( std::exit(EXIT_FAILURE); } - if (rMergeSource.getLength()) + if (!rMergeSource.isEmpty()) { pMergeDataFile = new MergeDataFile( rMergeSource, global::inputPathname, true ); diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index c15d81fe22e5..4b0106d63120 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -931,7 +931,7 @@ sal_Bool Export::WriteExportList(ResData *pResData, ExportList *pExportList, else { sGID += "."; sGID += pResData->sId; - while (sGID.getLength() != 0 && sGID[sGID.getLength() - 1] == '.') { + while (!sGID.isEmpty() && sGID[sGID.getLength() - 1] == '.') { sGID = sGID.copy(0, sGID.getLength() - 1); } } |