diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:11:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:11:10 +0100 |
commit | 1bd9765a0b80b84ca4cd60a5ff32f05653411fa1 (patch) | |
tree | 04503b7eb7e8a0afdf51200baffa72b16db15c5a /sal | |
parent | cffac9e59b2460e06ad6d781fa8f428a2a3b56bf (diff) |
New loplugin:conststringvar: sal
Change-Id: Ia66415ff9ee67958e84cfff7eda082cdbfc9b9b9
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/profile.cxx | 2 | ||||
-rw-r--r-- | sal/qa/rtl/strings/test_oustring_compare.cxx | 6 |
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"). |