diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-19 12:14:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-19 18:42:19 +0200 |
commit | 09394e0d6987345f30b316ff44cf007199ec8f09 (patch) | |
tree | 3d7bcdb4c942fcc43aa93efcef2f5b88893cbc86 /ucb/source/cacher/cachedcontentresultset.hxx | |
parent | 37259db1518135af5f85171e0c9c1b1d5475970e (diff) |
no need to allocate Sequence separately in CCRS_Cache
Change-Id: Ia433c56f512f70f92926de851363d95071a760f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119210
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/cacher/cachedcontentresultset.hxx')
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.hxx b/ucb/source/cacher/cachedcontentresultset.hxx index 99867a074894..3c20996b115f 100644 --- a/ucb/source/cacher/cachedcontentresultset.hxx +++ b/ucb/source/cacher/cachedcontentresultset.hxx @@ -34,6 +34,7 @@ #include <rtl/ref.hxx> #include <memory> +#include <optional> namespace com::sun::star::script { class XTypeConverter; @@ -54,7 +55,7 @@ class CachedContentResultSet m_pResult; css::uno::Reference< css::ucb::XContentIdentifierMapping > m_xContentIdentifierMapping; - std::unique_ptr<css::uno::Sequence< sal_Bool >> m_pMappedReminder; + std::optional<css::uno::Sequence< sal_Bool >> m_pMappedReminder; private: /// @throws css::sdbc::SQLException @@ -67,7 +68,7 @@ class CachedContentResultSet void remindMapped( sal_Int32 nRow ); bool isRowMapped( sal_Int32 nRow ); - css::uno::Sequence< sal_Bool >* getMappedReminder(); + css::uno::Sequence< sal_Bool >& getMappedReminder(); public: CCRS_Cache( const css::uno::Reference< |