diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-26 20:49:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-27 09:41:48 +0200 |
commit | 2b4734c8a4c1b414375c987c840a30c30e913854 (patch) | |
tree | ec54fbcc32bd57b3b3af6d9d4bbf3f39f2469875 /basctl | |
parent | 740194221e096ce437e8ac64fdc49e3957b6918e (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.cxx | 2 |
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 ) |