summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-26 20:49:43 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-27 09:41:48 +0200
commit2b4734c8a4c1b414375c987c840a30c30e913854 (patch)
treeec54fbcc32bd57b3b3af6d9d4bbf3f39f2469875 /basctl
parent740194221e096ce437e8ac64fdc49e3957b6918e (diff)
SbClassModuleObject never take a non-null arg
Change-Id: I1be4710a32355c104ba25005ec4f46c6f650b9c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172443 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index 43453a89a8b1..e42c645ee9d8 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -1523,7 +1523,7 @@ VclPtr<ModulWindow> Shell::ShowActiveModuleWindow( StarBASIC const * pBasic )
SbModule* pActiveModule = StarBASIC::GetActiveModule();
if (SbClassModuleObject* pCMO = dynamic_cast<SbClassModuleObject*>(pActiveModule))
- pActiveModule = pCMO->getClassModule();
+ pActiveModule = &pCMO->getClassModule();
DBG_ASSERT( pActiveModule, "No active module in ErrorHdl!?" );
if ( pActiveModule )