diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-07-12 21:16:26 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-13 08:20:40 +0000 |
commit | cba5a9223a7e8141dc171c3e2e992ce1c0df8330 (patch) | |
tree | d6fb552946346d47bbe727e74db9944c74b1261c /xmloff | |
parent | ea95a97c1ddcc6ad4f90ac2397ffb8c7b77b490f (diff) |
no need to create temporary OUString for comparison
Change-Id: I0a321e8ffbe379588a288084ec2e74e1a8c296b2
Reviewed-on: https://gerrit.libreoffice.org/27171
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 652e59ce46dc..5548b6725031 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -1031,7 +1031,7 @@ SchXMLExportHelper_Impl::SchXMLExportHelper_Impl( mbHasSeriesLabels( false ), mbHasCategoryLabels( false ), mbRowSourceColumns( true ), - msCLSID( OUString( SvGlobalName( SO3_SCH_CLASSID ).GetHexName())) + msCLSID( SvGlobalName( SO3_SCH_CLASSID ).GetHexName() ) { msTableName = "local-table"; diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index a6d461029926..504c4b90f03d 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -1115,11 +1115,11 @@ void XMLShapeExport::ImpCalcShapeType(const uno::Reference< drawing::XShape >& x if(xPropSet->getPropertyValue("CLSID") >>= sCLSID) { if (sCLSID.equals(mrExport.GetChartExport()->getChartCLSID()) || - sCLSID.equals(OUString( SvGlobalName( SO3_RPTCH_CLASSID ).GetHexName()))) + sCLSID.equals( SvGlobalName( SO3_RPTCH_CLASSID ).GetHexName() )) { eShapeType = XmlShapeTypeDrawChartShape; } - else if (sCLSID.equals(OUString( SvGlobalName( SO3_SC_CLASSID ).GetHexName()))) + else if (sCLSID.equals( SvGlobalName( SO3_SC_CLASSID ).GetHexName() )) { eShapeType = XmlShapeTypeDrawSheetShape; } @@ -1165,7 +1165,7 @@ void XMLShapeExport::ImpCalcShapeType(const uno::Reference< drawing::XShape >& x OUString sCLSID; if(xPropSet->getPropertyValue("CLSID") >>= sCLSID) { - if( sCLSID.equals(OUString( SvGlobalName( SO3_SC_CLASSID ).GetHexName())) ) + if( sCLSID.equals( SvGlobalName( SO3_SC_CLASSID ).GetHexName() ) ) { eShapeType = XmlShapeTypePresSheetShape; } |