diff options
Diffstat (limited to 'chart2/source/controller/dialogs/DataBrowser.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/DataBrowser.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index 8f0f979c0eff..e39213f77bf3 100644 --- a/chart2/source/controller/dialogs/DataBrowser.cxx +++ b/chart2/source/controller/dialogs/DataBrowser.cxx @@ -136,8 +136,8 @@ void SeriesHeaderEdit::MouseButtonDown( const MouseEvent& rMEvt ) Edit::MouseButtonDown( rMEvt ); if( m_bShowWarningBox ) - WarningBox(this, WinBits( WB_OK ), - SCH_RESSTR(STR_INVALID_NUMBER)).Execute(); + ScopedVclPtr<WarningBox>::Create(this, WinBits( WB_OK ), + SCH_RESSTR(STR_INVALID_NUMBER))->Execute(); } class SeriesHeader @@ -767,8 +767,8 @@ void DataBrowser::MouseButtonDown( const BrowserMouseEvent& rEvt ) void DataBrowser::ShowWarningBox() { - WarningBox(this, WinBits( WB_OK ), - SCH_RESSTR(STR_INVALID_NUMBER)).Execute(); + ScopedVclPtr<WarningBox>::Create(this, WinBits( WB_OK ), + SCH_RESSTR(STR_INVALID_NUMBER))->Execute(); } bool DataBrowser::ShowQueryBox() |