diff options
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/browser/formadapter.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/indexdialog.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WColumnSelect.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WCopyTable.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryTableView.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/ui/browser/formadapter.cxx b/dbaccess/source/ui/browser/formadapter.cxx index cc6b13e6e2f8..d2a0baaafa5c 100644 --- a/dbaccess/source/ui/browser/formadapter.cxx +++ b/dbaccess/source/ui/browser/formadapter.cxx @@ -1484,7 +1484,7 @@ Type SAL_CALL SbaXFormAdapter::getElementType() sal_Bool SAL_CALL SbaXFormAdapter::hasElements() { - return m_aChildren.size() > 0; + return !m_aChildren.empty(); } // css::container::XIndexContainer diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx index 4934f79d886a..30f94d19f973 100644 --- a/dbaccess/source/ui/dlg/indexdialog.cxx +++ b/dbaccess/source/ui/dlg/indexdialog.cxx @@ -677,7 +677,7 @@ namespace dbaui bool DbaIndexDialog::implCheckPlausibility(const Indexes::const_iterator& _rPos) { // need at least one field - if (0 == _rPos->aFields.size()) + if (_rPos->aFields.empty()) { std::unique_ptr<weld::MessageDialog> xError(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Warning, VclButtonsType::Ok, diff --git a/dbaccess/source/ui/misc/WColumnSelect.cxx b/dbaccess/source/ui/misc/WColumnSelect.cxx index b790b651bbcc..b5842210655e 100644 --- a/dbaccess/source/ui/misc/WColumnSelect.cxx +++ b/dbaccess/source/ui/misc/WColumnSelect.cxx @@ -184,7 +184,7 @@ bool OWizColumnSelect::LeavePage() if ( m_pParent->GetPressedButton() == OCopyTableWizard::WIZARD_NEXT || m_pParent->GetPressedButton() == OCopyTableWizard::WIZARD_FINISH ) - return m_pParent->getDestColumns().size() != 0; + return !m_pParent->getDestColumns().empty(); else return true; } diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index 7d49411122a5..0660be262c9b 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -661,7 +661,7 @@ void OCopyTableWizard::construct() m_pbNext->GrabFocus(); - if (m_vDestColumns.size()) + if (!m_vDestColumns.empty()) // source is a html or rtf table m_pbNext->SetStyle(m_pbFinish->GetStyle() | WB_DEFBUTTON); else diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx index 2e462c444dac..4ac149299450 100644 --- a/dbaccess/source/ui/querydesign/QueryTableView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx @@ -209,7 +209,7 @@ sal_Int32 OQueryTableView::CountTableAlias(const OUString& rName, sal_Int32& rMa void OQueryTableView::ReSync() { TTableWindowData& rTabWinDataList = m_pView->getController().getTableWindowData(); - OSL_ENSURE((getTableConnections().size()==0) && (GetTabWinMap().size()==0), + OSL_ENSURE((getTableConnections().empty()) && (GetTabWinMap().empty()), "before calling OQueryTableView::ReSync() please call ClearAll !"); // I need a collection of all window names that cannot be created so that I do not initialize connections for them. |