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

nadith nadmalinda at gmail.com
Mon Aug 1 06:26:16 UTC 2016


 codemaker/source/cppumaker/cppuoptions.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit b38a2d57160fcb0204b05055190d3df6315f51b1
Author: nadith <nadmalinda at gmail.com>
Date:   Sat Jul 30 02:01:21 2016 +0530

    tdf#101185 OString concatanations for efficiently coding
    
    example of bug fixed
    
    Change-Id: Id9f911fa1ec43425018b00af5172e23be1274638
    Reviewed-on: https://gerrit.libreoffice.org/27705
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/codemaker/source/cppumaker/cppuoptions.cxx b/codemaker/source/cppumaker/cppuoptions.cxx
index 209c0f2..2f7724b 100644
--- a/codemaker/source/cppumaker/cppuoptions.cxx
+++ b/codemaker/source/cppumaker/cppuoptions.cxx
@@ -95,8 +95,7 @@ bool CppuOptions::initOptions(int ac, char* av[], bool bCmdFile)
                 case 'n':
                     if (av[i][2] != 'D' || av[i][3] != '\0')
                     {
-                        OString tmp("'-nD', please check");
-                            tmp += " your input '" + OString(av[i]) + "'";
+                        OString tmp = "'-nD', please check your input '" + OString(av[i]) + "'";
                         throw IllegalArgument(tmp);
                     }
 
@@ -327,8 +326,7 @@ OString CppuOptions::prepareHelp()
 
 OString CppuOptions::prepareVersion()
 {
-    OString version(m_program);
-    version += " Version 2.0\n\n";
+    OString version = m_program + " Version 2.0\n\n";
     return version;
 }
 


More information about the Libreoffice-commits mailing list