summaryrefslogtreecommitdiff
path: root/cli_ure/source/climaker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-19 17:06:06 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 10:07:32 +0200
commit52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (patch)
tree72d0d1d16806f1c785a4f79ea2c0cdfe54bb8101 /cli_ure/source/climaker
parent3af99e4d59d89c343965a928681a30f36b1007d2 (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
Diffstat (limited to 'cli_ure/source/climaker')
-rw-r--r--cli_ure/source/climaker/climaker_app.cxx7
-rw-r--r--cli_ure/source/climaker/climaker_emit.cxx2
2 files changed, 3 insertions, 6 deletions
diff --git a/cli_ure/source/climaker/climaker_app.cxx b/cli_ure/source/climaker/climaker_app.cxx
index 12c63a7b8bc7..e11aee5855ce 100644
--- a/cli_ure/source/climaker/climaker_app.cxx
+++ b/cli_ure/source/climaker/climaker_app.cxx
@@ -378,12 +378,9 @@ SAL_IMPLEMENT_MAIN()
if (option_info == 0)
{
OUStringBuffer buf;
- buf.appendAscii(
- RTL_CONSTASCII_STRINGPARAM("unknown option ") );
+ buf.append("unknown option ");
buf.append( cmd_arg );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(
- "! Use climaker --help "
- "to print all options.") );
+ buf.append( "! Use climaker --help to print all options." );
throw RuntimeException(
buf.makeStringAndClear(),
css::uno::Reference< XInterface >() );
diff --git a/cli_ure/source/climaker/climaker_emit.cxx b/cli_ure/source/climaker/climaker_emit.cxx
index fcefc2637572..628547135df9 100644
--- a/cli_ure/source/climaker/climaker_emit.cxx
+++ b/cli_ure/source/climaker/climaker_emit.cxx
@@ -43,7 +43,7 @@ static inline ::System::String ^ to_cts_name(
OUString const & uno_name )
{
OUStringBuffer buf( 7 + uno_name.getLength() );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("unoidl.") );
+ buf.append( "unoidl." );
buf.append( uno_name );
return ustring_to_String( buf.makeStringAndClear() );
}