summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/unomodel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/unomodel.cxx')
-rw-r--r--basctl/source/basicide/unomodel.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx
index b4abf211cff4..ef959567f120 100644
--- a/basctl/source/basicide/unomodel.cxx
+++ b/basctl/source/basicide/unomodel.cxx
@@ -28,6 +28,9 @@
#include <iderdll.hxx>
#include <basdoc.hxx>
+namespace basctl
+{
+
using ::rtl::OUString;
using namespace ::cppu;
using namespace ::std;
@@ -110,9 +113,11 @@ uno::Reference< uno::XInterface > SAL_CALL SIDEModel_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & ) throw( uno::Exception )
{
SolarMutexGuard aGuard;
- BasicIDEGlobals::ensure();
- SfxObjectShell* pShell = new BasicDocShell();
+ EnsureIde();
+ SfxObjectShell* pShell = new DocShell();
return uno::Reference< uno::XInterface >( pShell->GetModel() );
}
+} // namespace basctl
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */