summaryrefslogtreecommitdiff
path: root/configmgr
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 /configmgr
parent1957303363ea9bd308b5781da09beaa09df7420c (diff)
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 'configmgr')
-rw-r--r--configmgr/source/access.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index a6a80350edb1..616bd0e31cc0 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -2021,7 +2021,7 @@ rtl::Reference< ChildAccess > Access::getUnmodifiedChild(
rtl::Reference< ChildAccess > Access::getSubChild(OUString const & path) {
sal_Int32 i = 0;
// For backwards compatibility, allow absolute paths where meaningful:
- if (!path.isEmpty() && path[0] == '/') {
+ if( path.startsWith("/") ) {
++i;
if (!getRootAccess().is()) {
return rtl::Reference< ChildAccess >();