diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-10 15:51:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-10 15:51:48 +0200 |
commit | 3bf4ada33f09e155f3350602e7a4b6cec77e40f0 (patch) | |
tree | 97570e8c77792d39bfd38d78c74192dfe761a0ad | |
parent | 746b518ceff830f8ac1f29c8871ad379793eb12e (diff) |
dialogs lifetimes should be wrapped in ScopedVclPtr
Change-Id: Ica8467af599fb3f9313bfa916fec8b7792a6000f
-rw-r--r-- | basctl/source/basicide/basobj2.cxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/main/ShapeController.cxx | 8 | ||||
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 4 | ||||
-rw-r--r-- | include/svx/svdmodel.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl-filter.cxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl-locking.cxx | 4 | ||||
-rw-r--r-- | uui/source/iahndl-ssl.cxx | 4 |
8 files changed, 14 insertions, 14 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx index 81b22ce0d4fa..61e5e419a8c4 100644 --- a/basctl/source/basicide/basobj2.cxx +++ b/basctl/source/basicide/basobj2.cxx @@ -242,7 +242,7 @@ OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument, OUString aScriptURL; SbMethod* pMethod = NULL; - VclPtr< MacroChooser > pChooser( new MacroChooser( NULL, true ) ); + ScopedVclPtr< MacroChooser > pChooser( NULL, true ); if ( bChooseOnly || !SvtModuleOptions().IsBasicIDE() ) pChooser->SetMode(MacroChooser::ChooseOnly); diff --git a/chart2/source/controller/main/ShapeController.cxx b/chart2/source/controller/main/ShapeController.cxx index c5606f98d4c7..acfc945e55ea 100644 --- a/chart2/source/controller/main/ShapeController.cxx +++ b/chart2/source/controller/main/ShapeController.cxx @@ -267,10 +267,10 @@ void ShapeController::executeDispatch_FormatLine() SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if ( pFact ) { - ::boost::scoped_ptr< SfxAbstractTabDialog > pDlg( + ScopedVclPtr< SfxAbstractTabDialog > pDlg( pFact->CreateSvxLineTabDialog( pParent, &aAttr, &pDrawModelWrapper->getSdrModel(), pSelectedObj, bHasMarked ) ); - if ( pDlg.get() && ( pDlg->Execute() == RET_OK ) ) + if ( pDlg->Execute() == RET_OK ) { const SfxItemSet* pOutAttr = pDlg->GetOutputItemSet(); if ( bHasMarked ) @@ -549,7 +549,7 @@ void ShapeController::executeDispatch_FontDialog() SfxItemSet aAttr( pDrawViewWrapper->GetModel()->GetItemPool() ); pDrawViewWrapper->GetAttributes( aAttr ); ViewElementListProvider aViewElementListProvider( pDrawModelWrapper ); - VclPtr< ShapeFontDialog > pDlg( new ShapeFontDialog( pParent, &aAttr, &aViewElementListProvider ) ); + ScopedVclPtr< ShapeFontDialog > pDlg( new ShapeFontDialog( pParent, &aAttr, &aViewElementListProvider ) ); if ( pDlg->Execute() == RET_OK ) { const SfxItemSet* pOutAttr = pDlg->GetOutputItemSet(); @@ -587,7 +587,7 @@ void ShapeController::executeDispatch_ParagraphDialog() aNewAttr.Put( SvxWidowsItem( 0, SID_ATTR_PARA_WIDOWS) ); aNewAttr.Put( SvxOrphansItem( 0, SID_ATTR_PARA_ORPHANS) ); - VclPtr< ShapeParagraphDialog > pDlg( new ShapeParagraphDialog( pParent, &aNewAttr ) ); + ScopedVclPtr< ShapeParagraphDialog > pDlg( new ShapeParagraphDialog( pParent, &aNewAttr ) ); if ( pDlg->Execute() == RET_OK ) { const SfxItemSet* pOutAttr = pDlg->GetOutputItemSet(); diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 28c97b211848..2ba044556f67 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -906,7 +906,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry ) } } - VclPtr< CuiInputDialog > xNewDlg( new CuiInputDialog( static_cast<vcl::Window*>(this), nMode ) ); + ScopedVclPtr< CuiInputDialog > xNewDlg( new CuiInputDialog( static_cast<vcl::Window*>(this), nMode ) ); xNewDlg->SetObjectName( aNewName ); do @@ -1029,7 +1029,7 @@ void SvxScriptOrgDialog::renameEntry( SvTreeListEntry* pEntry ) } sal_uInt16 nMode = INPUTMODE_RENAME; - VclPtr< CuiInputDialog > xNewDlg( new CuiInputDialog( static_cast<vcl::Window*>(this), nMode ) ); + ScopedVclPtr< CuiInputDialog > xNewDlg( new CuiInputDialog( static_cast<vcl::Window*>(this), nMode ) ); xNewDlg->SetObjectName( aNewName ); bool bValid; diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index e2f7e25dc613..6158eb51b8f1 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -170,7 +170,7 @@ protected: SdrOutliner* pDrawOutliner; // an Outliner for outputting text SdrOutliner* pHitTestOutliner;// an Outliner for the HitTest sal_uIntPtr nDefTextHgt; // Default text heigth in logical units - Vclptr<OutputDevice> pRefOutDev; // ReferenceDevice for the EditEngine + VclPtr<OutputDevice> pRefOutDev; // ReferenceDevice for the EditEngine /// Set if we are doing tiled rendering. bool mbTiledRendering; LibreOfficeKitCallback mpLibreOfficeKitCallback; diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index add57cffc29f..c55828795cc6 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -813,7 +813,7 @@ short TableDesignDialog::Execute() void showTableDesignDialog( ::vcl::Window* pParent, ViewShellBase& rBase ) { - VclPtr< TableDesignDialog > xDialog( new TableDesignDialog( pParent, rBase ) ); + ScopedVclPtr< TableDesignDialog > xDialog( new TableDesignDialog( pParent, rBase ) ); xDialog->Execute(); } diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx index 0ad263319cd4..a8d6c8d9625d 100644 --- a/uui/source/iahndl-filter.cxx +++ b/uui/source/iahndl-filter.cxx @@ -55,7 +55,7 @@ executeFilterDialog( { SolarMutexGuard aGuard; - VclPtr< uui::FilterDialog > xDialog(new uui::FilterDialog(pParent)); + ScopedVclPtr< uui::FilterDialog > xDialog(new uui::FilterDialog(pParent)); xDialog->SetURL(rURL); xDialog->ChangeFilters(&rFilters); diff --git a/uui/source/iahndl-locking.cxx b/uui/source/iahndl-locking.cxx index 1dd10cbe64b3..ad9ddb700142 100644 --- a/uui/source/iahndl-locking.cxx +++ b/uui/source/iahndl-locking.cxx @@ -93,7 +93,7 @@ handleLockedDocumentRequest_( aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); - VclPtr< OpenLockedQueryBox > xDialog(new OpenLockedQueryBox( + ScopedVclPtr< OpenLockedQueryBox > xDialog(new OpenLockedQueryBox( pParent, xManager.get(), aMessage ) ); nResult = xDialog->Execute(); } @@ -107,7 +107,7 @@ handleLockedDocumentRequest_( aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); - VclPtr< TryLaterQueryBox > xDialog( + ScopedVclPtr< TryLaterQueryBox > xDialog( new TryLaterQueryBox( pParent, xManager.get(), aMessage ) ); nResult = xDialog->Execute(); } diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx index a747a9753366..0e12165b2de5 100644 --- a/uui/source/iahndl-ssl.cxx +++ b/uui/source/iahndl-ssl.cxx @@ -145,7 +145,7 @@ executeUnknownAuthDialog( { SolarMutexGuard aGuard; - VclPtr< UnknownAuthDialog > xDialog(new UnknownAuthDialog(pParent, rXCert, xContext)); + ScopedVclPtr< UnknownAuthDialog > xDialog(new UnknownAuthDialog(pParent, rXCert, xContext)); // Get correct resource string OUString aMessage; @@ -186,7 +186,7 @@ executeSSLWarnDialog( { SolarMutexGuard aGuard; - VclPtr< SSLWarnDialog > xDialog(new SSLWarnDialog(pParent, rXCert, xContext)); + ScopedVclPtr< SSLWarnDialog > xDialog(new SSLWarnDialog(pParent, rXCert, xContext)); // Get correct resource string OUString aMessage_1; |