diff options
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 2cc26f78ea98..8b40e3643ef9 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -4611,7 +4611,7 @@ RTLFUNC(MsgBox) } nType &= (16+32+64); - boost::scoped_ptr<MessBox> pBox; + VclPtr<MessBox> pBox; SolarMutexGuard aSolarGuard; @@ -4619,19 +4619,19 @@ RTLFUNC(MsgBox) switch( nType ) { case 16: - pBox.reset(new ErrorBox( pParent, nWinBits, aMsg )); + pBox.reset(VclPtr<ErrorBox>::Create( pParent, nWinBits, aMsg )); break; case 32: - pBox.reset(new QueryBox( pParent, nWinBits, aMsg )); + pBox.reset(VclPtr<QueryBox>::Create( pParent, nWinBits, aMsg )); break; case 48: - pBox.reset(new WarningBox( pParent, nWinBits, aMsg )); + pBox.reset(VclPtr<WarningBox>::Create( pParent, nWinBits, aMsg )); break; case 64: - pBox.reset(new InfoBox( pParent, nWinBits, aMsg )); + pBox.reset(VclPtr<InfoBox>::Create( pParent, nWinBits, aMsg )); break; default: - pBox.reset(new MessBox( pParent, nWinBits, aTitle, aMsg )); + pBox.reset(VclPtr<MessBox>::Create( pParent, nWinBits, aTitle, aMsg )); } pBox->SetText( aTitle ); short nRet = pBox->Execute(); |