summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:49:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:56:03 +0200
commitff98f5772d959be54b2a66c226510cd92068486f (patch)
tree9a575c5da1f47cd8e57fc01df0739d70c20fa5a4 /sal
parentfee4b54d1c0eaf37dc1a08e4570642028a5c19fb (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): sal
Change-Id: Id9d994343d10b5d5e852b10946c036dfbeb66d04 Reviewed-on: https://gerrit.libreoffice.org/76656 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file_path_helper.cxx2
-rw-r--r--sal/qa/rtl/doublelock/rtl_doublelocking.cxx2
-rw-r--r--sal/rtl/bootstrap.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx
index 12532e03c01f..584279cff841 100644
--- a/sal/osl/unx/file_path_helper.cxx
+++ b/sal/osl/unx/file_path_helper.cxx
@@ -35,7 +35,7 @@ static const OUString FPH_LOCAL_DIR_ENTRY()
{ return OUString(FPH_CHAR_DOT); }
static const OUString FPH_PARENT_DIR_ENTRY()
-{ return OUString(".."); }
+{ return ".."; }
void osl_systemPathRemoveSeparator(rtl_uString* pustrPath)
{
diff --git a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
index 17e39f79cb20..384b8f59392a 100644
--- a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
+++ b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
@@ -47,7 +47,7 @@
namespace {
struct Gregorian : public rtl::StaticWithInit<OUString, Gregorian> {
const OUString operator () () {
- return OUString( CONST_TEST_STRING );
+ return CONST_TEST_STRING;
}
};
}
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index 4a913f5fef3a..4417246e9eea 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -104,7 +104,7 @@ OUString recursivelyExpandMacros(
if (requestStack->file == requestFile &&
requestStack->key == requestKey)
{
- return OUString("***RECURSION DETECTED***");
+ return "***RECURSION DETECTED***";
}
}
ExpandRequestLink link = { requestStack, requestFile, requestKey };