diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-15 15:34:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-15 18:39:31 +0200 |
commit | e469a171833c2d88c4e129f339415c15a3a14b1e (patch) | |
tree | f6b7a46fa3f231adb06dd14219d489539531af2c /include | |
parent | 1a253362f6d1e1909913dce298630c92d431e41e (diff) |
wrap OSQLParser::s_xLocaleData in vcl::DeleteOnDeinit
since my adaption of i18npool to use OUStringLiteral, this
data structure might get torn down after the i18npool data is
has pointers to.
Change-Id: If83d232d5bfb003ed4dbfb70d47f707a73d2bcc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153121
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/connectivity/sqlparse.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/connectivity/sqlparse.hxx b/include/connectivity/sqlparse.hxx index c3314c470c6b..15400c112240 100644 --- a/include/connectivity/sqlparse.hxx +++ b/include/connectivity/sqlparse.hxx @@ -25,6 +25,7 @@ #include <connectivity/dbtoolsdllapi.hxx> #include <connectivity/sqlerror.hxx> #include <comphelper/singletonref.hxx> +#include <vcl/lazydelete.hxx> #include <map> #include <memory> @@ -138,7 +139,7 @@ namespace connectivity sal_Int32 m_nDateFormatKey; css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::i18n::XCharacterClassification> m_xCharClass; - static css::uno::Reference< css::i18n::XLocaleData4> s_xLocaleData; + static vcl::DeleteOnDeinit<css::uno::Reference< css::i18n::XLocaleData4>> s_xLocaleData; // convert a string into double trim it to scale of _nscale and then transform it back to string OUString stringToDouble(const OUString& _rValue,sal_Int16 _nScale); |