summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-10 08:11:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-10 08:11:10 +0100
commit1bd9765a0b80b84ca4cd60a5ff32f05653411fa1 (patch)
tree04503b7eb7e8a0afdf51200baffa72b16db15c5a /sal
parentNew loplugin:conststringvar: sax (diff)
downloadcore-1bd9765a0b80b84ca4cd60a5ff32f05653411fa1.tar.gz
core-1bd9765a0b80b84ca4cd60a5ff32f05653411fa1.zip
New loplugin:conststringvar: sal
Change-Id: Ia66415ff9ee67958e84cfff7eda082cdbfc9b9b9
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/profile.cxx2
-rw-r--r--sal/qa/rtl/strings/test_oustring_compare.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx
index b62bfad8adda..17bf399bde8e 100644
--- a/sal/osl/unx/profile.cxx
+++ b/sal/osl/unx/profile.cxx
@@ -1687,7 +1687,7 @@ static bool storeProfile(osl_TProfileImpl* pProfile, bool bCleanup)
static osl_TFile* osl_openTmpProfileImpl(osl_TProfileImpl* pProfile)
{
osl_TFile* pFile=nullptr;
- sal_Char const * pszExtension = "tmp";
+ sal_Char const * const pszExtension = "tmp";
sal_Char pszTmpName[PATH_MAX];
oslProfileOption PFlags=0;
diff --git a/sal/qa/rtl/strings/test_oustring_compare.cxx b/sal/qa/rtl/strings/test_oustring_compare.cxx
index 5a0b2cbe0e23..d500e5cce700 100644
--- a/sal/qa/rtl/strings/test_oustring_compare.cxx
+++ b/sal/qa/rtl/strings/test_oustring_compare.cxx
@@ -45,9 +45,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION(test::oustring::Compare);
void test::oustring::Compare::equalsIgnoreAsciiCaseAscii()
{
- const char* abc = "abc";
- const char* abcd = "abcd";
- const char* empty = "";
+ const char* const abc = "abc";
+ const char* const abcd = "abcd";
+ const char* const empty = "";
CPPUNIT_ASSERT(!rtl::OUString().equalsIgnoreAsciiCaseAscii(abc));
CPPUNIT_ASSERT(!rtl::OUString().equalsIgnoreAsciiCaseAsciiL(abc,3));
CPPUNIT_ASSERT(!rtl::OUString("abc").