diff options
author | Krisztian Pinter <pin.terminator@gmail.com> | 2015-03-28 05:18:46 +0000 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-03-30 09:55:37 +0000 |
commit | f863d2602fca7d180f49cc4b6fb1bdba57e6a012 (patch) | |
tree | 82cee740e5dd30d5e2d79771571e67804736da06 /cli_ure/source/climaker | |
parent | 25c5bf88255fa02c1dab515dfb95736826f7b326 (diff) |
fdo#57950 Replace chained append() with operator+
Replaced all in cli_ure
Change-Id: I144542f386fe26444c290edd9e23b26cb07941a6
Reviewed-on: https://gerrit.libreoffice.org/15040
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cli_ure/source/climaker')
-rw-r--r-- | cli_ure/source/climaker/climaker_app.cxx | 7 | ||||
-rw-r--r-- | cli_ure/source/climaker/climaker_emit.cxx | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/cli_ure/source/climaker/climaker_app.cxx b/cli_ure/source/climaker/climaker_app.cxx index 42381ad6e477..efff92ded838 100644 --- a/cli_ure/source/climaker/climaker_app.cxx +++ b/cli_ure/source/climaker/climaker_app.cxx @@ -368,12 +368,7 @@ SAL_IMPLEMENT_MAIN() } if (option_info == 0) { - OUStringBuffer buf; - buf.append("unknown option "); - buf.append( cmd_arg ); - buf.append( "! Use climaker --help to print all options." ); - throw RuntimeException( - buf.makeStringAndClear() ); + throw RuntimeException("unknown option " + cmd_arg + "! Use climaker --help to print all options."); } else { diff --git a/cli_ure/source/climaker/climaker_emit.cxx b/cli_ure/source/climaker/climaker_emit.cxx index 8706c3c91a39..51bed9ab4ac0 100644 --- a/cli_ure/source/climaker/climaker_emit.cxx +++ b/cli_ure/source/climaker/climaker_emit.cxx @@ -41,10 +41,7 @@ System::String^ mapUnoPolymorphicName(System::String^ unoName); static inline ::System::String ^ to_cts_name( OUString const & uno_name ) { - OUStringBuffer buf( 7 + uno_name.getLength() ); - buf.append( "unoidl." ); - buf.append( uno_name ); - return ustring_to_String( buf.makeStringAndClear() ); + return ustring_to_String("unoidl." + uno_name); } |