summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-26 16:59:44 +0200
committerNoel Grandin <noel@peralex.com>2014-05-27 08:20:12 +0200
commit0f2824b117b65bd9c9db2870edc159419ae0c1d9 (patch)
tree2e45a7d5e0d60b97bf989fd21c0ae35392ba5823 /framework
parent9af0abebfd61641c9d028505caa864cdf898e35b (diff)
remove more unnecessary use of OUString constructor
Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
Diffstat (limited to 'framework')
-rw-r--r--framework/source/fwe/helper/propertysetcontainer.cxx4
-rw-r--r--framework/source/fwe/helper/undomanagerhelper.cxx6
-rw-r--r--framework/source/fwi/uielement/rootitemcontainer.cxx6
3 files changed, 7 insertions, 9 deletions
diff --git a/framework/source/fwe/helper/propertysetcontainer.cxx b/framework/source/fwe/helper/propertysetcontainer.cxx
index e659c03bb90d..8284460e1483 100644
--- a/framework/source/fwe/helper/propertysetcontainer.cxx
+++ b/framework/source/fwe/helper/propertysetcontainer.cxx
@@ -97,7 +97,7 @@ void SAL_CALL PropertySetContainer::insertByIndex( sal_Int32 Index, const ::com:
else
{
throw IllegalArgumentException(
- OUString( WRONG_TYPE_EXCEPTION ),
+ WRONG_TYPE_EXCEPTION,
(OWeakObject *)this, 2 );
}
}
@@ -133,7 +133,7 @@ void SAL_CALL PropertySetContainer::replaceByIndex( sal_Int32 Index, const ::com
else
{
throw IllegalArgumentException(
- OUString( WRONG_TYPE_EXCEPTION ),
+ WRONG_TYPE_EXCEPTION,
(OWeakObject *)this, 2 );
}
}
diff --git a/framework/source/fwe/helper/undomanagerhelper.cxx b/framework/source/fwe/helper/undomanagerhelper.cxx
index 3f06ee7bb41b..1d4f13aabfb6 100644
--- a/framework/source/fwe/helper/undomanagerhelper.cxx
+++ b/framework/source/fwe/helper/undomanagerhelper.cxx
@@ -395,7 +395,7 @@ namespace framework
{
if ( !i_action.is() )
throw IllegalArgumentException(
- OUString( "illegal undo action object" ),
+ "illegal undo action object",
getXUndoManager(),
1
);
@@ -545,7 +545,7 @@ namespace framework
if ( i_hidden && ( rUndoManager.GetUndoActionCount( IUndoManager::CurrentLevel ) == 0 ) )
throw EmptyUndoStackException(
- OUString( "can't enter a hidden context without a previous Undo action" ),
+ "can't enter a hidden context without a previous Undo action",
m_rUndoManagerImplementation.getThis()
);
@@ -576,7 +576,7 @@ namespace framework
if ( !rUndoManager.IsInListAction() )
throw InvalidStateException(
- OUString( "no active undo context" ),
+ "no active undo context",
getXUndoManager()
);
diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx
index b7a914139584..e09e840028f5 100644
--- a/framework/source/fwi/uielement/rootitemcontainer.cxx
+++ b/framework/source/fwi/uielement/rootitemcontainer.cxx
@@ -210,8 +210,7 @@ throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetExcept
throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );
}
else
- throw IllegalArgumentException( OUString( WRONG_TYPE_EXCEPTION ),
- (OWeakObject *)this, 2 );
+ throw IllegalArgumentException( WRONG_TYPE_EXCEPTION, (OWeakObject *)this, 2 );
}
void SAL_CALL RootItemContainer::removeByIndex( sal_Int32 nIndex )
@@ -239,8 +238,7 @@ throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetExcept
throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );
}
else
- throw IllegalArgumentException( OUString( WRONG_TYPE_EXCEPTION ),
- (OWeakObject *)this, 2 );
+ throw IllegalArgumentException( WRONG_TYPE_EXCEPTION, (OWeakObject *)this, 2 );
}
Reference< XInterface > SAL_CALL RootItemContainer::createInstanceWithContext( const Reference< XComponentContext >& )