summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtww8.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-02 17:53:27 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-04 13:57:07 +0200
commit2ddc66e6981a7d819cd6196a7ccbc811ca213be2 (patch)
treeab991ee652a9121ac18213f84d0df7855a2f2e29 /sw/source/filter/ww8/wrtww8.cxx
parentdec6bb217dd3ae98bee8e48fab9f8e26b7645b2b (diff)
Use hasElements to check Sequence emptiness in sw
Similar to clang-tidy readability-container-size-empty Change-Id: If44f20a7aa678915e32d12101e1af71476f4b590 Reviewed-on: https://gerrit.libreoffice.org/71679 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/wrtww8.cxx')
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index 1ccca8f8eb78..6108764e3353 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -3248,7 +3248,7 @@ bool SwWW8Writer::InitStd97CodecUpdateMedium( ::msfilter::MSCodec_Std97& rCodec
aEncryptionData.realloc( 0 );
}
- if ( !aEncryptionData.getLength() )
+ if ( !aEncryptionData.hasElements() )
{
// try to generate the encryption data based on password
const SfxStringItem* pPasswordItem = SfxItemSet::GetItem<SfxStringItem>(mpMedium->GetItemSet(), SID_PASSWORD, false);
@@ -3275,12 +3275,12 @@ bool SwWW8Writer::InitStd97CodecUpdateMedium( ::msfilter::MSCodec_Std97& rCodec
}
}
- if ( aEncryptionData.getLength() )
+ if ( aEncryptionData.hasElements() )
mpMedium->GetItemSet()->ClearItem( SID_PASSWORD );
}
// nonempty encryption data means here that the codec was successfully initialized
- return ( aEncryptionData.getLength() != 0 );
+ return aEncryptionData.hasElements();
}
ErrCode WW8Export::ExportDocument_Impl()