diff options
author | Herbert Dürr <hdu@apache.org> | 2014-02-04 08:44:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-04 12:14:11 +0000 |
commit | 59238ef422468756c4fb67d4a00bb8c5ad31ffbc (patch) | |
tree | 314fa0b5d01f5a1f147ca6d002f423cbe793797e /accessibility | |
parent | 24a00c43c2b59df9b3f29c76f2e898e43bbb27ba (diff) |
Related: #i123862# use O*String's isEmpty() method...
to check for emptiness in modules starting with 'a'
Patch-by: j.nitschke@ok.de
Review-by: hdu@apache.org
(cherry picked from commit 40b2ffbb1036c2f2db50965525009213d8fd6343)
Conflicts:
accessibility/source/extended/accessibleiconchoicectrl.cxx
accessibility/source/extended/textwindowaccessibility.cxx
accessibility/source/standard/vclxaccessiblebox.cxx
accessibility/source/standard/vclxaccessibletoolboxitem.cxx
automation/source/server/recorder.cxx
automation/source/server/statemnt.cxx
avmedia/source/framework/mediacontrol.cxx
avmedia/source/framework/soundhandler.cxx
avmedia/source/gstreamer/gstplayer.cxx
avmedia/source/viewer/mediawindow.cxx
Change-Id: I8e6d6754282634f6931a2e7f73f08f70c23d452e
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblebox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx index b9f3a3e0b212..7509c981329e 100644 --- a/accessibility/source/standard/vclxaccessiblebox.cxx +++ b/accessibility/source/standard/vclxaccessiblebox.cxx @@ -182,7 +182,7 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven if ( xText.is() ) { ::rtl::OUString sText = xText->getSelectedText(); - if ( !sText.getLength() ) + if ( sText.isEmpty() ) sText = xText->getText(); pList->UpdateSelection_Acc (sText, m_bIsDropDownBox); //if(m_bIsDropDownBox && !pList->IsInDropDown()) @@ -573,7 +573,7 @@ void VCLXAccessibleBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& r sText = pSubEdit->GetText(); nEntryCount = pComboBox->GetEntryCount(); } - if (sText.getLength() == 0 && nEntryCount >0) + if ( sText.isEmpty() && nEntryCount > 0 ) rStateSet.AddState(AccessibleStateType::INDETERMINATE); } else if (m_aBoxType == LISTBOX && m_bIsDropDownBox == true) |