summaryrefslogtreecommitdiff
path: root/starmath/inc/smmod.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-11-14 11:46:10 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-11-14 08:57:32 +0100
commiteecdaa02b64f10302f2742b27a7bd89a13fc30f5 (patch)
treeb13e5d9cff856b5a2255843c0acaafd343e52d4c /starmath/inc/smmod.hxx
parentdf8941ee5bb375de504f106370f28d7f3c12ab70 (diff)
Turn a macro to a function
Change-Id: I39cfbe43e7f27ada9999daf93aa6ccfd38fb0c52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176561 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath/inc/smmod.hxx')
-rw-r--r--starmath/inc/smmod.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx
index 54f339b550fb..ac47d294ab63 100644
--- a/starmath/inc/smmod.hxx
+++ b/starmath/inc/smmod.hxx
@@ -93,8 +93,8 @@ public:
virtual std::optional<SfxItemSet> CreateItemSet( sal_uInt16 nId ) override;
virtual void ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet ) override;
virtual std::unique_ptr<SfxTabPage> CreateTabPage( sal_uInt16 nId, weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet ) override;
-};
-#define SM_MOD() ( static_cast<SmModule*>(SfxApplication::GetModule(SfxToolsModule::Math)) )
+ static auto get() { return static_cast<SmModule*>(SfxApplication::GetModule(SfxToolsModule::Math)); }
+};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */