summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-30 19:09:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-31 12:04:02 +0000
commit1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d (patch)
tree686b5f3247d28e19ba949b81fd5596dbe3a27401 /framework
parent890ebf1cc6bb58ff21da19d7fd4b9b67eaa32a9c (diff)
unnecessary use of OUString constructor
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1 Reviewed-on: https://gerrit.libreoffice.org/21945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/fwe/xml/saxnamespacefilter.cxx6
-rw-r--r--framework/source/uielement/subtoolbarcontroller.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/fwe/xml/saxnamespacefilter.cxx b/framework/source/fwe/xml/saxnamespacefilter.cxx
index 07b1f6c15bcf..4e4b1bf122b7 100644
--- a/framework/source/fwe/xml/saxnamespacefilter.cxx
+++ b/framework/source/fwe/xml/saxnamespacefilter.cxx
@@ -99,7 +99,7 @@ void SAL_CALL SaxNamespaceFilter::startElement(
}
catch ( SAXException& e )
{
- e.Message = OUString( getErrorLineString() + e.Message );
+ e.Message = getErrorLineString() + e.Message;
throw;
}
@@ -111,7 +111,7 @@ void SAL_CALL SaxNamespaceFilter::startElement(
}
catch ( SAXException& e )
{
- e.Message = OUString( getErrorLineString() + e.Message );
+ e.Message = getErrorLineString() + e.Message;
throw;
}
@@ -130,7 +130,7 @@ void SAL_CALL SaxNamespaceFilter::endElement(const OUString& aName)
}
catch ( SAXException& e )
{
- e.Message = OUString( getErrorLineString() + e.Message );
+ e.Message = getErrorLineString() + e.Message;
throw;
}
diff --git a/framework/source/uielement/subtoolbarcontroller.cxx b/framework/source/uielement/subtoolbarcontroller.cxx
index 9eac17cecdae..5f7abf6a228b 100644
--- a/framework/source/uielement/subtoolbarcontroller.cxx
+++ b/framework/source/uielement/subtoolbarcontroller.cxx
@@ -147,7 +147,7 @@ void SubToolBarController::statusChanged( const css::frame::FeatureStateEvent& E
{
// Enum command, such as the current custom shape,
// toggle checked state.
- if ( m_aLastCommand == OUString( m_aCommandURL + "." + aStrValue ) )
+ if ( m_aLastCommand == ( m_aCommandURL + "." + aStrValue ) )
{
eTri = TRISTATE_TRUE;
nItemBits |= ToolBoxItemBits::CHECKABLE;