diff options
author | nadith <nadmalinda@gmail.com> | 2016-07-30 02:01:21 +0530 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-01 06:25:43 +0000 |
commit | b38a2d57160fcb0204b05055190d3df6315f51b1 (patch) | |
tree | c86b31a050d4b6f50096c57761e852ebe23029f3 /codemaker | |
parent | 4244236d1bfc6426b7d81f0a9d13e473c091b345 (diff) |
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@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cppuoptions.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/codemaker/source/cppumaker/cppuoptions.cxx b/codemaker/source/cppumaker/cppuoptions.cxx index 209c0f28e320..2f7724b6290a 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; } |