diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-06 11:37:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-07 07:38:24 +0100 |
commit | 38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f (patch) | |
tree | ac3de03a8c2944371ce43443750f6eeb8d318046 /connectivity/source/commontools | |
parent | 60714a814847f6d10f00aa6809a3896a48741e0b (diff) |
loplugin:singlevalfields extend to all static vars
Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528
Reviewed-on: https://gerrit.libreoffice.org/64710
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/commontools')
-rw-r--r-- | connectivity/source/commontools/dbconversion.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/commontools/filtermanager.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index fe600a7b8063..77e7c871123c 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -406,7 +406,7 @@ namespace dbtools css::util::Date DBTypeConversion::toDate(const OUString& _sSQLString) { // get the token out of a string - static sal_Unicode sDateSep = '-'; + static const sal_Unicode sDateSep = '-'; sal_Int32 nIndex = 0; sal_uInt16 nYear = 0, diff --git a/connectivity/source/commontools/filtermanager.cxx b/connectivity/source/commontools/filtermanager.cxx index 152c4a4a2258..9a2950f4d2d8 100644 --- a/connectivity/source/commontools/filtermanager.cxx +++ b/connectivity/source/commontools/filtermanager.cxx @@ -75,7 +75,7 @@ namespace dbtools } assert(false); - static OUString sErr("#FilterManager::getFilterComponent unknown component#"); + static const OUString sErr("#FilterManager::getFilterComponent unknown component#"); return sErr; } |