summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-28 09:53:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-28 13:19:18 +0200
commit6eb3d37fdc75537aa94144eef97493ec6192792f (patch)
tree4f65352402590eee8dd6164644ee2140ad0e79da /include
parenta4b66458a7b8da2f5580014813e5dabe3fa670b6 (diff)
no need to allocate SfxStyleFamilies on the heap
Change-Id: Ibedb36dec14c61927ef594ddf47fda94728530a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116319 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/module.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sfx2/module.hxx b/include/sfx2/module.hxx
index fbffbc6ade78..13cf89769703 100644
--- a/include/sfx2/module.hxx
+++ b/include/sfx2/module.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_SFX2_MODULE_HXX
#include <memory>
+#include <optional>
#include <sal/config.h>
#include <sfx2/dllapi.h>
#include <sfx2/shell.hxx>
@@ -81,7 +82,7 @@ public:
const SfxItemSet& rSet );
virtual void Invalidate(sal_uInt16 nId = 0) override;
- virtual std::unique_ptr<SfxStyleFamilies> CreateStyleFamilies() { return nullptr; }
+ virtual std::optional<SfxStyleFamilies> CreateStyleFamilies() { return {}; }
static SfxModule* GetActiveModule( SfxViewFrame* pFrame=nullptr );
static FieldUnit GetCurrentFieldUnit();