summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui/dlg/GroupsSorting.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-03 22:11:02 +0300
committerMichael Stahl <Michael.Stahl@cib.de>2019-05-17 11:20:15 +0200
commit0e4c542f7a862e681baf25f042bc3a928c14004f (patch)
tree56582ddb40671a22eaaa54e1ab3058dc553b9d5d /reportdesign/source/ui/dlg/GroupsSorting.cxx
parent644ca26af744aec1e66c8dd4199d1228e0f780be (diff)
Use hasElements to check Sequence emptiness in [l-r]*
Similar to clang-tidy readability-container-size-empty Change-Id: Idd67f332b04857a39df26bad1733aae21236f105 Reviewed-on: https://gerrit.libreoffice.org/71764 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'reportdesign/source/ui/dlg/GroupsSorting.cxx')
-rw-r--r--reportdesign/source/ui/dlg/GroupsSorting.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx
index a12479660ad5..d761e50655d3 100644
--- a/reportdesign/source/ui/dlg/GroupsSorting.cxx
+++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx
@@ -260,7 +260,7 @@ void OFieldExpressionControl::StartDrag( sal_Int8 /*_nAction*/ , const Point& /*
{
uno::Sequence<uno::Any> aClipboardList = fillSelectedGroups();
- if( aClipboardList.getLength() )
+ if( aClipboardList.hasElements() )
{
rtl::Reference<OGroupExchange> pData = new OGroupExchange(aClipboardList);
pData->StartDrag(this, DND_ACTION_MOVE );
@@ -297,7 +297,7 @@ sal_Int8 OFieldExpressionControl::ExecuteDrop( const BrowserExecuteDropEvent& rE
uno::Any aDrop = aDropped.GetAny(OGroupExchange::getReportGroupId(), OUString());
uno::Sequence< uno::Any > aGroups;
aDrop >>= aGroups;
- if ( aGroups.getLength() )
+ if ( aGroups.hasElements() )
{
moveGroups(aGroups,nRow);
nAction = DND_ACTION_MOVE;
@@ -308,7 +308,7 @@ sal_Int8 OFieldExpressionControl::ExecuteDrop( const BrowserExecuteDropEvent& rE
void OFieldExpressionControl::moveGroups(const uno::Sequence<uno::Any>& _aGroups,sal_Int32 _nRow,bool _bSelect)
{
- if ( _aGroups.getLength() )
+ if ( _aGroups.hasElements() )
{
m_bIgnoreEvent = true;
{
@@ -1026,7 +1026,7 @@ IMPL_LINK_NOARG( OGroupsSortingDialog, OnFormatAction, ToolBox*, void )
}
else
{
- if ( nIndex >= 0 && aClipboardList.getLength() )
+ if ( nIndex >= 0 && aClipboardList.hasElements() )
{
m_pFieldExpression->SetNoSelection();
m_pFieldExpression->moveGroups(aClipboardList,nIndex,false);