From f1373539043d9040b68e44500d12cfa20126f6d3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 16 Dec 2014 17:27:57 +0100 Subject: cppuhelper: Use appropriate OUString functions on string constants Change-Id: I52a38a07982801087903817ec5b65e992a1d58d1 --- cppuhelper/source/component.cxx | 3 +-- cppuhelper/source/implbase.cxx | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx index 361dba0957e1..2c34da024b6b 100644 --- a/cppuhelper/source/component.cxx +++ b/cppuhelper/source/component.cxx @@ -197,8 +197,7 @@ void OComponentHelper::dispose() catch (Exception & exc) { throw RuntimeException( - OUString("unexpected UNO exception caught: ") + - exc.Message ); + "unexpected UNO exception caught: " + exc.Message ); } } else diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx index aa75e9e4e788..f42047cbc916 100644 --- a/cppuhelper/source/implbase.cxx +++ b/cppuhelper/source/implbase.cxx @@ -128,8 +128,7 @@ void WeakComponentImplHelperBase::dispose() catch (Exception & exc) { throw RuntimeException( - OUString("unexpected UNO exception caught: ") + - exc.Message ); + "unexpected UNO exception caught: " + exc.Message ); } } } @@ -261,8 +260,7 @@ void WeakAggComponentImplHelperBase::dispose() catch (Exception & exc) { throw RuntimeException( - OUString("unexpected UNO exception caught: ") + - exc.Message ); + "unexpected UNO exception caught: " + exc.Message ); } } } -- cgit