summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-30 19:09:35 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:25:56 -0400
commitda695330ee333d3210fd6ff236294684e27c5f82 (patch)
tree300b5da7ad08d4d94eea8b1b618a6f7e5969e7e4 /framework
parentb41c9ce2aaaf7ef38071298c7427f6b0905a9bd9 (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> (cherry picked from commit 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d)
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 4ef0229af322..b41c1f0929b9 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;