diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 13:09:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 15:02:53 +0200 |
commit | 3ffb7efa95d900db6fdd7d8443535988adb2be70 (patch) | |
tree | 12d5a6d04a847f9cb749a2d4755dbc78128200d1 /connectivity | |
parent | 75c3fa3cfc6da7721f81c96c43e7f020346f196a (diff) |
remove some unnecessary OUString::intern
Change-Id: Ia0f41dfc8a00c115ad544b8236d751e6b2dae5ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117577
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/sqlerror.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/commontools/sqlerror.cxx b/connectivity/source/commontools/sqlerror.cxx index 9f8608384d1d..513a5cf9dc81 100644 --- a/connectivity/source/commontools/sqlerror.cxx +++ b/connectivity/source/commontools/sqlerror.cxx @@ -229,9 +229,10 @@ namespace connectivity OUString SQLError_Impl::impl_getSQLState( ErrorCondition _eCondition ) { + static constexpr OUStringLiteral DEFAULT_STATE = u"S1000"; OUString sState = lcl_getResourceState(_eCondition); if (sState.isEmpty()) - sState = OUString::intern( RTL_CONSTASCII_USTRINGPARAM( "S1000" ) ); + sState = DEFAULT_STATE; return sState; } |