summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-01 09:51:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-01 12:54:16 +0200
commit8d43860bbdee020080503ed838d92e634ee9092e (patch)
tree563ccc53290fe5779009844a221d3771212fd587 /sd/source/ui/docshell
parent97c468daae242ef8d62edb0942cb52ef4a2a1ebb (diff)
convert DocCreationMode to scoped enum
Change-Id: I42fd704601fe81462f17b3968911fd79c13b50ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91473 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/docshell')
-rw-r--r--sd/source/ui/docshell/docshel4.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx
index 93c1fd4df139..9e90dd020282 100644
--- a/sd/source/ui/docshell/docshel4.cxx
+++ b/sd/source/ui/docshell/docshel4.cxx
@@ -247,7 +247,7 @@ bool DrawDocShell::InitNew( const css::uno::Reference< css::embed::XStorage >& x
if (bRet)
{
if( !mbSdDataObj )
- mpDoc->NewOrLoadCompleted(NEW_DOC); // otherwise calling
+ mpDoc->NewOrLoadCompleted(DocCreationMode::New); // otherwise calling
// NewOrLoadCompleted(NEW_LOADED) in
// SdDrawDocument::AllocModel()
}
@@ -350,7 +350,7 @@ bool DrawDocShell::LoadFrom( SfxMedium& rMedium )
if( mpViewShell )
pWait.reset(new weld::WaitObject(mpViewShell->GetFrameWeld()));
- mpDoc->NewOrLoadCompleted( NEW_DOC );
+ mpDoc->NewOrLoadCompleted( DocCreationMode::New );
mpDoc->CreateFirstPages();
mpDoc->StopWorkStartupDelay();