diff options
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryTextView.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryTextView.cxx b/dbaccess/source/ui/querydesign/QueryTextView.cxx index f508f76a56d8..be9833dd16b3 100644 --- a/dbaccess/source/ui/querydesign/QueryTextView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTextView.cxx @@ -111,7 +111,7 @@ void OQueryTextView::copy() // ----------------------------------------------------------------------------- sal_Bool OQueryTextView::isCutAllowed() { - return m_pEdit->GetSelected().Len() != 0; + return !m_pEdit->GetSelected().isEmpty(); } // ----------------------------------------------------------------------------- sal_Bool OQueryTextView::isPasteAllowed() diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 342a3413b281..2bfcc1f00f54 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -2501,10 +2501,10 @@ sal_Bool OSelectionBrowseBox::isCutAllowed() case BROW_FUNCTION_ROW: break; case BROW_FIELD_ROW: - bCutAllowed = m_pFieldCell->GetSelected().Len() != 0; + bCutAllowed = !m_pFieldCell->GetSelected().isEmpty(); break; default: - bCutAllowed = m_pTextCell->GetSelected().Len() != 0; + bCutAllowed = !m_pTextCell->GetSelected().isEmpty(); break; } return bCutAllowed; |