From fb847101519ad74c02183672c04ebf1d700aae83 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 10 Dec 2013 08:31:13 +0200 Subject: simplify - use OUString::startsWith where possible Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf --- svl/source/misc/urihelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl') 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; -- cgit