summaryrefslogtreecommitdiff
path: root/l10ntools/source/export.cxx
diff options
context:
space:
mode:
authorGustavo Buzzatti Pacheco <gbpacheco@gmail.com>2012-01-04 11:38:41 -0200
committerLuboš Luňák <l.lunak@suse.cz>2012-01-05 15:07:34 +0100
commitc47f3523338b8e58c1ea18cc583064761f60df90 (patch)
treeb4fa717b768e4445e66a9345119103689f4fdd57 /l10ntools/source/export.cxx
parent77d05dfa5ba3f81844b093808246d60504cfabda (diff)
Fix for fdo43460 Part XXII getLength() to isEmpty()
Part XXII modules jvmfwk, l10ntools, lingucomponent
Diffstat (limited to 'l10ntools/source/export.cxx')
-rw-r--r--l10ntools/source/export.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 041b57d34b7a..dc07f414afeb 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -222,7 +222,7 @@ extern FILE *GetNextFile()
/*****************************************************************************/
{
// look for next valid filename in input file list
- if ( sTempFile.getLength())
+ if ( !sTempFile.isEmpty())
{
fclose( pTempFile );
String sTemp(rtl::OStringToOUString(sTempFile,
@@ -941,7 +941,7 @@ int Export::Execute( int nToken, const char * pToken )
}
else
{
- if (pResData->sText[ sLangIndex ].getLength())
+ if (!pResData->sText[ sLangIndex ].isEmpty())
{
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
sError.append(sLangIndex);
@@ -963,7 +963,7 @@ int Export::Execute( int nToken, const char * pToken )
PrepareTextToMerge( sOrig, STRING_TYP_HELPTEXT, sLangIndex, pResData );
else
{
- if (pResData->sHelpText[ sLangIndex ].getLength())
+ if (!pResData->sHelpText[ sLangIndex ].isEmpty())
{
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
sError.append(sLangIndex);
@@ -980,7 +980,7 @@ int Export::Execute( int nToken, const char * pToken )
PrepareTextToMerge( sOrig, STRING_TYP_QUICKHELPTEXT, sLangIndex, pResData );
else
{
- if (pResData->sQuickHelpText[ sLangIndex ].getLength())
+ if (!pResData->sQuickHelpText[ sLangIndex ].isEmpty())
{
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
sError.append(sLangIndex);
@@ -997,7 +997,7 @@ int Export::Execute( int nToken, const char * pToken )
PrepareTextToMerge( sOrig, STRING_TYP_TITLE, sLangIndex, pResData );
else
{
- if ( pResData->sTitle[ sLangIndex ].getLength())
+ if ( !pResData->sTitle[ sLangIndex ].isEmpty())
{
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
sError.append(sLangIndex);
@@ -1160,13 +1160,13 @@ sal_Bool Export::WriteData( ResData *pResData, sal_Bool bCreateNew )
// mandatory to export: en-US
- if (( pResData->sText[ SOURCE_LANGUAGE ].getLength())
+ if (( !pResData->sText[ SOURCE_LANGUAGE ].isEmpty())
||
- ( pResData->sHelpText[ SOURCE_LANGUAGE ].getLength())
+ ( !pResData->sHelpText[ SOURCE_LANGUAGE ].isEmpty())
||
- ( pResData->sQuickHelpText[ SOURCE_LANGUAGE ].getLength())
+ ( !pResData->sQuickHelpText[ SOURCE_LANGUAGE ].isEmpty())
||
- ( pResData->sTitle[ SOURCE_LANGUAGE ].getLength()))
+ ( !pResData->sTitle[ SOURCE_LANGUAGE ].isEmpty()))
{
ByteString sGID = pResData->sGId;
@@ -1187,25 +1187,25 @@ sal_Bool Export::WriteData( ResData *pResData, sal_Bool bCreateNew )
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
if ( !sCur.EqualsIgnoreCaseAscii("x-comment") ){
- if (pResData->sText[ sCur ].getLength())
+ if (!pResData->sText[ sCur ].isEmpty())
sXText = pResData->sText[ sCur ];
else {
sXText = pResData->sText[ SOURCE_LANGUAGE ];
}
- if (pResData->sHelpText[ sCur ].getLength())
+ if (!pResData->sHelpText[ sCur ].isEmpty())
sXHText = pResData->sHelpText[ sCur ];
else {
sXHText = pResData->sHelpText[ SOURCE_LANGUAGE ];
}
- if (pResData->sQuickHelpText[ sCur ].getLength())
+ if (!pResData->sQuickHelpText[ sCur ].isEmpty())
sXQHText = pResData->sQuickHelpText[ sCur ];
else {
sXQHText = pResData->sQuickHelpText[ SOURCE_LANGUAGE ];
}
- if (pResData->sTitle[ sCur ].getLength())
+ if (!pResData->sTitle[ sCur ].isEmpty())
sXTitle = pResData->sTitle[ sCur ];
else
sXTitle = pResData->sTitle[ SOURCE_LANGUAGE ];
@@ -1215,7 +1215,7 @@ sal_Bool Export::WriteData( ResData *pResData, sal_Bool bCreateNew )
if ( !sXHText.Len())
{
- if (pResData->sHelpText[ SOURCE_LANGUAGE ].getLength())
+ if (!pResData->sHelpText[ SOURCE_LANGUAGE ].isEmpty())
sXHText = pResData->sHelpText[ SOURCE_LANGUAGE ];
}
}
@@ -1334,7 +1334,7 @@ sal_Bool Export::WriteExportList( ResData *pResData, ExportList *pExportList,
for (unsigned int n = 0; n < aLanguages.size(); ++n)
{
sCur = aLanguages[ n ];
- if ((*pEntry)[ SOURCE_LANGUAGE ].getLength())
+ if (!(*pEntry)[ SOURCE_LANGUAGE ].isEmpty())
{
if ( bEnableExport )
{
@@ -1344,7 +1344,7 @@ sal_Bool Export::WriteExportList( ResData *pResData, ExportList *pExportList,
if( rTyp.EqualsIgnoreCaseAscii("pairedlist") )
{
sLID = GetPairedListID( sText );
- if ((*pEntry)[ sCur ].getLength())
+ if (!(*pEntry)[ sCur ].isEmpty())
sText = (*pEntry)[ sCur ];
sText = GetPairedListString( sText );
}