summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/baside2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/baside2.cxx')
-rw-r--r--basctl/source/basicide/baside2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index 6079ed448b02..d602a7439d37 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -305,7 +305,7 @@ bool ModulWindow::BasicExecute()
{
if ( !aDocument.allowMacros() )
{
- MessageDialog(this, IDE_RESSTR(RID_STR_CANNOTRUNMACRO), VCL_MESSAGE_WARNING).Execute();
+ ScopedVclPtrInstance<MessageDialog>::Create(this, IDE_RESSTR(RID_STR_CANNOTRUNMACRO), VCL_MESSAGE_WARNING)->Execute();
return false;
}
}
@@ -443,7 +443,7 @@ bool ModulWindow::LoadBasic()
bDone = true;
}
else
- MessageDialog(this, IDE_RESSTR(RID_STR_COULDNTREAD)).Execute();
+ ScopedVclPtrInstance<MessageDialog>::Create(this, IDE_RESSTR(RID_STR_COULDNTREAD))->Execute();
}
return bDone;
}
@@ -489,7 +489,7 @@ bool ModulWindow::SaveBasicSource()
bDone = true;
}
else
- MessageDialog(this, IDEResId(RID_STR_COULDNTWRITE)).Execute();
+ ScopedVclPtrInstance<MessageDialog>::Create(this, IDEResId(RID_STR_COULDNTWRITE))->Execute();
}
return bDone;