summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-30 15:40:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-03-30 21:23:28 +0200
commita69ad67504b32dd644902d8acf4c2a0fef86d3c7 (patch)
tree3527e421703b790bfa025b1bed433329a949ad81 /sfx2
parent344fe3bc48bd84799791e4e321fa37b2150e6b6b (diff)
fix some --disable-scripting warnings
Change-Id: I0fa5ec5e0fc7a08f5558f013ec75fd7d4fe5c1a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113379 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appbas.cxx8
-rw-r--r--sfx2/source/doc/objxtor.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/appbas.cxx b/sfx2/source/appl/appbas.cxx
index 1dec99095687..482b93692200 100644
--- a/sfx2/source/appl/appbas.cxx
+++ b/sfx2/source/appl/appbas.cxx
@@ -62,7 +62,7 @@ void SfxApplication::SaveBasicAndDialogContainer() const
BasicManager* SfxApplication::GetBasicManager()
{
#if !HAVE_FEATURE_SCRIPTING
- return 0;
+ return nullptr;
#else
if (utl::ConfigManager::IsFuzzing())
return nullptr;
@@ -73,7 +73,7 @@ BasicManager* SfxApplication::GetBasicManager()
XLibraryContainer * SfxApplication::GetDialogContainer()
{
#if !HAVE_FEATURE_SCRIPTING
- return NULL;
+ return nullptr;
#else
if (utl::ConfigManager::IsFuzzing())
return nullptr;
@@ -87,7 +87,7 @@ XLibraryContainer * SfxApplication::GetDialogContainer()
XLibraryContainer * SfxApplication::GetBasicContainer()
{
#if !HAVE_FEATURE_SCRIPTING
- return NULL;
+ return nullptr;
#else
if (utl::ConfigManager::IsFuzzing())
return nullptr;
@@ -100,7 +100,7 @@ XLibraryContainer * SfxApplication::GetBasicContainer()
StarBASIC* SfxApplication::GetBasic()
{
#if !HAVE_FEATURE_SCRIPTING
- return 0;
+ return nullptr;
#else
if (utl::ConfigManager::IsFuzzing())
return nullptr;
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index e5de957a4202..6c33cc54e325 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -747,7 +747,7 @@ Reference< XLibraryContainer > SfxObjectShell::GetBasicContainer()
StarBASIC* SfxObjectShell::GetBasic() const
{
#if !HAVE_FEATURE_SCRIPTING
- return NULL;
+ return nullptr;
#else
BasicManager * pMan = GetBasicManager();
return pMan ? pMan->GetLib(0) : nullptr;