From 9881bea8d41997fb46579eb5f0314300159c96cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 28 May 2017 19:41:52 +0200 Subject: remove unnecessary use of OUString::getStr Change-Id: I3d13e1c0bb6aa4a7aacc463198747c1368ebc9b4 Reviewed-on: https://gerrit.libreoffice.org/38114 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sal/osl/unx/file_path_helper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal') diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx index 4d1ecc588ee6..d042e5349aef 100644 --- a/sal/osl/unx/file_path_helper.cxx +++ b/sal/osl/unx/file_path_helper.cxx @@ -114,11 +114,11 @@ void SAL_CALL osl_systemPathGetFileNameOrLastDirectoryPart( rtl::OUString last_part; - if (path.getLength() > 1 || (path.getLength() == 1 && *path.getStr() != FPH_CHAR_PATH_SEPARATOR)) + if (path.getLength() > 1 || (path.getLength() == 1 && path[0] != FPH_CHAR_PATH_SEPARATOR)) { sal_Int32 idx_ps = path.lastIndexOf(FPH_CHAR_PATH_SEPARATOR); idx_ps++; // always right to increment by one even if idx_ps == -1! - last_part = rtl::OUString(path.getStr() + idx_ps); + last_part = path.copy(idx_ps); } rtl_uString_assign(ppustrFileNameOrLastDirPart, last_part.pData); } -- cgit