summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-25 12:37:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-25 12:38:37 +0200
commit327001c7575661a6dd2968a7375dc1eeed58ab2a (patch)
tree7c40c299712a405c575e048b608c9e9264021042 /oox
parent346938fa26343314a0836bf3347a48fe3342fd74 (diff)
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I5bb3493e3d27bd348f58cd4f858f34becf761cd0
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx2
-rw-r--r--oox/source/export/vmlexport.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index fb27c777728b..77b4b2b697ca 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -821,7 +821,7 @@ void ChartExport::exportExternalData( Reference< css::chart::XChartDocument > xC
}
FSHelperPtr pFS = GetFS();
OUString type = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package";
- if (relationPath.endsWith(OUString(".bin")))
+ if (relationPath.endsWith(".bin"))
type = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject";
OUString sRelId = GetFB()->addRelation(pFS->getOutputStream(),
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index 7161a2f106c9..9b42d2cfe30f 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -197,7 +197,7 @@ bool VMLExport::IsWaterMarkShape(const OUString& rStr)
{
if (rStr.isEmpty() ) return false;
- if (rStr.match(OUString("PowerPlusWaterMarkObject")) || rStr.match(OUString("WordPictureWatermark")))
+ if (rStr.match("PowerPlusWaterMarkObject") || rStr.match("WordPictureWatermark"))
return true;
else
return false;