summaryrefslogtreecommitdiffstats
path: root/bridges/source/jni_uno/jni_info.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-03 15:59:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-03 16:23:14 +0100
commit86268546a09c3bdd0d5cb6bc047408db779e057c (patch)
tree4ec9c0e598a9918087438968b3984e5552dc09c9 /bridges/source/jni_uno/jni_info.cxx
parentClean up use of OSL debug functionality (diff)
downloadcore-86268546a09c3bdd0d5cb6bc047408db779e057c.tar.gz
core-86268546a09c3bdd0d5cb6bc047408db779e057c.zip
Clean up string concatenation
Change-Id: I83515f8907b000eb0506410e9b04f28f4257a3b8
Diffstat (limited to 'bridges/source/jni_uno/jni_info.cxx')
-rw-r--r--bridges/source/jni_uno/jni_info.cxx23
1 files changed, 8 insertions, 15 deletions
diff --git a/bridges/source/jni_uno/jni_info.cxx b/bridges/source/jni_uno/jni_info.cxx
index 79cabe2a3534..f55ad4f6802a 100644
--- a/bridges/source/jni_uno/jni_info.cxx
+++ b/bridges/source/jni_uno/jni_info.cxx
@@ -49,11 +49,10 @@ JNI_type_info::JNI_type_info(
m_td.makeComplete();
if (! m_td.get()->bComplete)
{
- OUStringBuffer buf( 128 );
- buf.append( "cannot make type complete: " );
- buf.append( OUString::unacquired( &m_td.get()->pTypeName ) );
- buf.append( jni.get_stack_trace() );
- throw BridgeRuntimeError( buf.makeStringAndClear() );
+ throw BridgeRuntimeError(
+ "cannot make type complete: "
+ + OUString::unacquired( &m_td.get()->pTypeName )
+ + jni.get_stack_trace() );
}
}
@@ -366,11 +365,8 @@ JNI_type_info const * JNI_info::create_type_info(
}
default:
{
- OUStringBuffer buf( 128 );
- buf.append( "type info not supported for " );
- buf.append( uno_name );
- buf.append( jni.get_stack_trace() );
- throw BridgeRuntimeError( buf.makeStringAndClear() );
+ throw BridgeRuntimeError(
+ "type info not supported for " + uno_name + jni.get_stack_trace() );
}
}
@@ -465,11 +461,8 @@ JNI_type_info const * JNI_info::get_type_info(
css::uno::TypeDescription td( uno_name );
if (! td.is())
{
- OUStringBuffer buf( 128 );
- buf.append( "UNO type not found: " );
- buf.append( uno_name );
- buf.append( jni.get_stack_trace() );
- throw BridgeRuntimeError( buf.makeStringAndClear() );
+ throw BridgeRuntimeError(
+ "UNO type not found: " + uno_name + jni.get_stack_trace() );
}
info = create_type_info( jni, td.get() );
}