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 | |
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')
-rw-r--r-- | connectivity/source/commontools/dbconversion.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/commontools/filtermanager.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/hsqldb/HStorageAccess.cxx | 2 |
3 files changed, 3 insertions, 3 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; } diff --git a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx index 3854c7fff035..a29277078810 100644 --- a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx +++ b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx @@ -360,7 +360,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_Nativ ::sal_Int64 nLen = xSeek->getLength(); if ( nLen < position) { - static ::sal_Int64 BUFFER_SIZE = 9192; + static const ::sal_Int64 BUFFER_SIZE = 9192; #ifdef HSQLDB_DBG aDataLog.seek( nLen ); #endif |