summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-10 08:31:13 +0200
committerNoel Grandin <noel@peralex.com>2013-12-12 13:15:24 +0200
commitfb847101519ad74c02183672c04ebf1d700aae83 (patch)
treefa391cb75ed11817804bb4b9fbafa7ee265b8dbe /svl
parentDOCX: when writing a group shape, require wpg (diff)
downloadcore-fb847101519ad74c02183672c04ebf1d700aae83.tar.gz
core-fb847101519ad74c02183672c04ebf1d700aae83.zip
simplify - use OUString::startsWith where possible
Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/urihelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx
index f147f1a810a3..d2c1783f9fe0 100644
--- a/svl/source/misc/urihelper.cxx
+++ b/svl/source/misc/urihelper.cxx
@@ -62,7 +62,7 @@ OUString URIHelper::SmartRel2Abs(INetURLObject const & rTheBaseURIRef,
INetURLObject::FSysStyle eStyle)
{
// Backwards compatibility:
- if (!rTheRelURIRef.isEmpty() && rTheRelURIRef[0] == '#')
+ if( rTheRelURIRef.startsWith("#") )
return rTheRelURIRef;
INetURLObject aAbsURIRef;