summaryrefslogtreecommitdiff
path: root/svl/qa/unit/test_URIHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/qa/unit/test_URIHelper.cxx')
-rw-r--r--svl/qa/unit/test_URIHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/qa/unit/test_URIHelper.cxx b/svl/qa/unit/test_URIHelper.cxx
index 3d160d66bee5..313ce6538c96 100644
--- a/svl/qa/unit/test_URIHelper.cxx
+++ b/svl/qa/unit/test_URIHelper.cxx
@@ -162,7 +162,7 @@ css::uno::Any Content::execute(
uri += "/";
break;
case '2':
- if (uri.getLength() > 0 && uri[uri.getLength() - 1] == '/') {
+ if (uri.endsWith("/")) {
uri = uri.copy(0, uri.getLength() -1);
}
break;