Kaydet (Commit) 327001c7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: Flag more inefficiencies

Change-Id: I5bb3493e3d27bd348f58cd4f858f34becf761cd0
üst 346938fa
......@@ -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(),
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment