From 5bb4a2ba1d8a6b98720868786e552aa8fd2a22eb Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 19 Mar 2013 14:16:55 +0100 Subject: further OUString cleanup Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6 --- toolkit/source/awt/vclxmenu.cxx | 6 +++--- toolkit/source/controls/formattedcontrol.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index 154c265619d4..6ea7cd608f62 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -40,16 +40,16 @@ if ( MENU_ITEM_NOTFOUND == mpMenu->GetItemPos( nItemId ) ) \ throw ::com::sun::star::container::NoSuchElementException( \ OUString( Func ) \ - += OUString( ": There is no menu item with " ) \ + += ": There is no menu item with " \ += OUString::valueOf( sal_Int32( nItemId ) ) \ - += OUString( " as identifier" ), \ + += " as identifier", \ *this \ ); #define THROW_MENUPOS_NOT_FOUND( Func, nPos ) \ if ( MENU_ITEM_NOTFOUND == sal_uInt16( nPos ) ) \ throw ::com::sun::star::container::NoSuchElementException( \ OUString( Func ) \ - += OUString( ": There is no menu item at position " ) \ + += ": There is no menu item at position " \ += OUString::valueOf( sal_Int32( nPos ) ), \ *this \ ); diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index 51af6be8d042..1ed4fd4b5848 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -364,7 +364,7 @@ namespace toolkit throw IllegalArgumentException( ( OUString("Unable to convert the given value for the property ") += GetPropertyName((sal_uInt16)nPropId) ) - += OUString(" (double, integer, or string expected)."), + += " (double, integer, or string expected).", static_cast< XPropertySet* >(this), 1); } -- cgit