diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 10:44:13 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 10:46:01 +0100 |
commit | c0a802b59e1edddeb0b621e15137f5058299efd7 (patch) | |
tree | 48203cffcd51d1d2747bb2384608907d73b69670 /dbaccess/source | |
parent | 1c4025babd7037a3292aa530c7d45ab8d6ef6dcb (diff) |
Audit and correct misc. clears -> disposeAndClears.
Anything that used to be 'delete'd should be disposeAndCleared()
in the new world.
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/ui/browser/brwview.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/control/FieldDescControl.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/control/TableGrantCtrl.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/control/curledit.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/ConnectionHelper.cxx | 9 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/indexfieldscontrol.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WCopyTable.cxx | 10 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WTypeSelect.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/JoinDesignView.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/JoinTableView.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 12 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/limitboxcontroller.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TEditControl.cxx | 8 |
13 files changed, 34 insertions, 34 deletions
diff --git a/dbaccess/source/ui/browser/brwview.cxx b/dbaccess/source/ui/browser/brwview.cxx index 83a436aa63e3..92ee3e21ef95 100644 --- a/dbaccess/source/ui/browser/brwview.cxx +++ b/dbaccess/source/ui/browser/brwview.cxx @@ -122,10 +122,10 @@ UnoDataBrowserView::~UnoDataBrowserView() void UnoDataBrowserView::dispose() { - m_pSplitter.clear(); + m_pSplitter.disposeAndClear(); setTreeView(NULL); - m_pStatus.clear(); + m_pStatus.disposeAndClear(); try { diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 73495b56dcab..9de7ee291de9 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -83,8 +83,8 @@ namespace --_nPos; _pControl->Hide(); _pControlText->Hide(); - _pControl.clear(); - _pControlText.clear(); + _pControl.disposeAndClear(); + _pControlText.disposeAndClear(); } } @@ -1049,7 +1049,7 @@ void OFieldDescControl::DeactivateAggregate( EControlType eType ) if ( pFormatSample ) { pFormatSample->Hide(); - pFormatSample.clear(); + pFormatSample.disposeAndClear(); } break; case tpBoolDefault: diff --git a/dbaccess/source/ui/control/TableGrantCtrl.cxx b/dbaccess/source/ui/control/TableGrantCtrl.cxx index 6f86962649c1..77ac1b685c39 100644 --- a/dbaccess/source/ui/control/TableGrantCtrl.cxx +++ b/dbaccess/source/ui/control/TableGrantCtrl.cxx @@ -82,8 +82,8 @@ void OTableGrantControl::dispose() m_nDeactivateEvent = 0; } - m_pCheckCell.clear(); - m_pEdit.clear(); + m_pCheckCell.disposeAndClear(); + m_pEdit.disposeAndClear(); m_xTables = NULL; ::svt::EditBrowseBox::dispose(); diff --git a/dbaccess/source/ui/control/curledit.cxx b/dbaccess/source/ui/control/curledit.cxx index e30ab1314b3c..4fd8c0236e91 100644 --- a/dbaccess/source/ui/control/curledit.cxx +++ b/dbaccess/source/ui/control/curledit.cxx @@ -46,7 +46,7 @@ OConnectionURLEdit::~OConnectionURLEdit() void OConnectionURLEdit::dispose() { SetSubEdit(nullptr); - m_pForcedPrefix.clear(); + m_pForcedPrefix.disposeAndClear(); Edit::dispose(); } diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx index c50eef04c453..2f2e8f385ae8 100644 --- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx @@ -114,10 +114,11 @@ namespace dbaui void OConnectionHelper::dispose() { - m_pFT_Connection.clear(); - m_pConnectionURL.clear(); - m_pPB_Connection.clear(); - m_pPB_CreateDB.clear(); + // FIXME: used to have an if (m_bDelete) ... + m_pFT_Connection.disposeAndClear(); + m_pConnectionURL.disposeAndClear(); + m_pPB_Connection.disposeAndClear(); + m_pPB_CreateDB.disposeAndClear(); OGenericAdministrationPage::dispose(); } diff --git a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx index a6aa0ab1b925..36d39547f117 100644 --- a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx +++ b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx @@ -115,8 +115,8 @@ namespace dbaui void IndexFieldsControl::dispose() { - m_pSortingCell.clear(); - m_pFieldNameCell.clear(); + m_pSortingCell.disposeAndClear(); + m_pFieldNameCell.disposeAndClear(); ::svt::EditBrowseBox::dispose(); } diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index 887a1d06ba4e..68b5b59a391c 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -710,11 +710,11 @@ void OCopyTableWizard::dispose() m_aTypeInfo.clear(); m_aDestTypeInfoIndex.clear(); - m_pbHelp.clear(); - m_pbCancel.clear(); - m_pbPrev.clear(); - m_pbNext.clear(); - m_pbFinish.clear(); + m_pbHelp.disposeAndClear(); + m_pbCancel.disposeAndClear(); + m_pbPrev.disposeAndClear(); + m_pbNext.disposeAndClear(); + m_pbFinish.disposeAndClear(); WizardDialog::dispose(); } diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx index 0eb7d8f2ae4d..bcc5386136bf 100644 --- a/dbaccess/source/ui/misc/WTypeSelect.cxx +++ b/dbaccess/source/ui/misc/WTypeSelect.cxx @@ -45,7 +45,6 @@ using namespace ::com::sun::star::sdbc; OWizTypeSelectControl::OWizTypeSelectControl(vcl::Window* pParent, vcl::Window* pParentTabPage, OTableDesignHelpBar* pHelpBar) : OFieldDescControl(pParent, pHelpBar) { - m_pParentTabPage = pParentTabPage; } diff --git a/dbaccess/source/ui/querydesign/JoinDesignView.cxx b/dbaccess/source/ui/querydesign/JoinDesignView.cxx index de5b30488a57..d9c0734c8483 100644 --- a/dbaccess/source/ui/querydesign/JoinDesignView.cxx +++ b/dbaccess/source/ui/querydesign/JoinDesignView.cxx @@ -66,8 +66,8 @@ OJoinDesignView::~OJoinDesignView() void OJoinDesignView::dispose() { - m_pScrollWindow.clear(); - m_pTableView.clear(); + m_pScrollWindow.disposeAndClear(); + m_pTableView.disposeAndClear(); ODataView::dispose(); } diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index ad15132b72ef..70adb519d022 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -96,7 +96,7 @@ void OScrollWindowHelper::dispose() { m_aHScrollBar.disposeAndClear(); m_aVScrollBar.disposeAndClear(); - m_pCornerWindow.clear(); + m_pCornerWindow.disposeAndClear(); m_pTableView.clear(); vcl::Window::dispose(); } diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 87ea89bda2a0..368f5c4738fb 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -158,12 +158,12 @@ OSelectionBrowseBox::~OSelectionBrowseBox() void OSelectionBrowseBox::dispose() { - m_pTextCell.clear(); - m_pVisibleCell.clear(); - m_pFieldCell.clear(); - m_pTableCell.clear(); - m_pOrderCell.clear(); - m_pFunctionCell.clear(); + m_pTextCell.disposeAndClear(); + m_pVisibleCell.disposeAndClear(); + m_pFieldCell.disposeAndClear(); + m_pTableCell.disposeAndClear(); + m_pOrderCell.disposeAndClear(); + m_pFunctionCell.disposeAndClear(); ::svt::EditBrowseBox::dispose(); } diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx index 71c037c80e80..e9c63e0f4de7 100644 --- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx +++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx @@ -139,7 +139,7 @@ throw (uno::RuntimeException, std::exception) svt::ToolboxController::dispose(); SolarMutexGuard aSolarMutexGuard; - m_pLimitBox.clear(); + m_pLimitBox.disposeAndClear(); } /// XStatusListener diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index 3face44e3790..a02b527573c5 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -274,10 +274,10 @@ void OTableEditorCtrl::dispose() Application::RemoveUserEvent( nInvalidateTypeEvent ); // Delete the control types - pNameCell.clear(); - pTypeCell.clear(); - pDescrCell.clear(); - pHelpTextCell.clear(); + pNameCell.disposeAndClear(); + pTypeCell.disposeAndClear(); + pDescrCell.disposeAndClear(); + pHelpTextCell.disposeAndClear(); pDescrWin.clear(); OTableRowView::dispose(); } |