[Libreoffice-commits] core.git: i18npool/source

Asela Dasanayaka rukmal.tb at gmail.com
Fri Sep 23 07:02:48 UTC 2016


 i18npool/source/localedata/LocaleNode.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit bb06f2c00eea15c287fc06988d6f9b1f21098936
Author: Asela Dasanayaka <rukmal.tb at gmail.com>
Date:   Fri Sep 23 06:13:58 2016 +0530

    tdf#100726 Improve readability of OUString concatination
    
    concat string in module i18npool to improve readability
    
    Change-Id: I7f447d64703cf5eb07742329ff2656f67214898b
    Reviewed-on: https://gerrit.libreoffice.org/29206
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: jan iversen <jani at documentfoundation.org>

diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index 13ff853..1aad3d4 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -723,13 +723,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
             OUString aKey( aUsage + "," + aType);
             if (!aDefaultsSet.insert( aKey).second)
             {
-                OUString aStr(  "Duplicated default for usage=\"");
-                aStr += aUsage;
-                aStr += "\" type=\"";
-                aStr += aType;
-                aStr += "\": formatindex=\"";
-                aStr += aFormatIndex;
-                aStr += "\".";
+                OUString aStr = "Duplicated default for usage=\"" + aUsage + "\" type=\"" + aType + "\": formatindex=\"" + aFormatIndex + "\".";
                 incError( aStr);
             }
         }


More information about the Libreoffice-commits mailing list