diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 10:05:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:32 +0200 |
commit | 1730df0127ff230cf6c89f4815f5b59c8603fa2b (patch) | |
tree | 4d5b32ea155c173fe3cfd905bb148e0998286d9a /l10ntools | |
parent | 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::append
Convert code like:
aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") );
to:
aOStringBuf.append( " is missing )" );
which compiles down to the same code.
Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/export.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 1be5fa2eeee9..405716719b44 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -133,7 +133,7 @@ sal_Bool ResData::SetId( const OString& rId, sal_uInt16 nLevel ) if ( bChild && bChildWithText ) { - OString sError(RTL_CONSTASCII_STRINGPARAM("ResId after child definition")); + OString sError("ResId after child definition"); yyerror(sError.getStr()); SetError(); } @@ -664,9 +664,9 @@ int Export::Execute( int nToken, const char * pToken ) { if (!pResData->sText[ sLangIndex ].isEmpty()) { - OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language ")); + OStringBuffer sError("Language "); sError.append(sLangIndex); - sError.append(RTL_CONSTASCII_STRINGPARAM("defined twice")); + sError.append("defined twice"); yyerror(sError.getStr()); } pResData->sText[ sLangIndex ] = sText; @@ -679,7 +679,7 @@ int Export::Execute( int nToken, const char * pToken ) { if (!pResData->sHelpText[ sLangIndex ].isEmpty()) { - OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language ")); + OStringBuffer sError("Language "); sError.append(sLangIndex); sError.append(" defined twice"); YYWarning(sError.getStr()); @@ -694,9 +694,9 @@ int Export::Execute( int nToken, const char * pToken ) { if (!pResData->sQuickHelpText[ sLangIndex ].isEmpty()) { - OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language ")); + OStringBuffer sError("Language "); sError.append(sLangIndex); - sError.append(RTL_CONSTASCII_STRINGPARAM(" defined twice")); + sError.append(" defined twice"); YYWarning(sError.getStr()); } pResData->sQuickHelpText[ sLangIndex ] = sText; @@ -709,9 +709,9 @@ int Export::Execute( int nToken, const char * pToken ) { if ( !pResData->sTitle[ sLangIndex ].isEmpty()) { - OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language ")); + OStringBuffer sError("Language "); sError.append(sLangIndex); - sError.append(RTL_CONSTASCII_STRINGPARAM(" defined twice")); + sError.append(" defined twice"); YYWarning(sError.getStr()); } pResData->sTitle[ sLangIndex ] = sText; @@ -987,7 +987,7 @@ OString Export::FullId() } if (sFull.getLength() > 255) { - OString sError(RTL_CONSTASCII_STRINGPARAM("GroupId > 255 chars")); + OString sError("GroupId > 255 chars"); printf("GroupID = %s\n", sFull.getStr()); yyerror(sError.getStr()); } |