diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 10:31:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 13:55:30 +0200 |
commit | 65e4a776e8315fd61fd67ad00d28985b11f0b79e (patch) | |
tree | 1ab7a2947d47807086e0477a8d3ad35c2e75dd48 /sw | |
parent | a7b7614c7cab42cd0839752635db81e25e1e50a1 (diff) |
simplify some OUString::copy calls
Change-Id: Ifa228ca02ea79a1309e1875414028aade7e5f12d
Reviewed-on: https://gerrit.libreoffice.org/39801
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/xml/xmltexti.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx index 58a3bd20f4b8..a989dc57ad29 100644 --- a/sw/source/filter/xml/xmltexti.cxx +++ b/sw/source/filter/xml/xmltexti.cxx @@ -241,7 +241,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOLEObject( SwFrameFormat *pFrameFormat = nullptr; SwOLENode *pOLENd = nullptr; - if( rHRef.copy( 0, nPos ) == "vnd.sun.star.ServiceName" ) + if( rHRef.startsWith("vnd.sun.star.ServiceName:") ) { bool bInsert = false; SvGlobalName aClassName; |