summaryrefslogtreecommitdiff
path: root/unotools/source/config/optionsdlg.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-02 13:39:20 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-02 13:37:13 +0200
commitdeffca13fd8a765ddc518cfcff464cb1b6f5c65a (patch)
treee1a34de7398b803bca75fc9dcd69985cc8b9fc18 /unotools/source/config/optionsdlg.cxx
parente2abbc0062398ea67cb13cb5b0b7bfdce78e652c (diff)
Use hasElements to check Sequence emptiness in [t-u]*
Similar to clang-tidy readability-container-size-empty Change-Id: Idefe55e37f5c837c889548ffe7c5711400012a4d Reviewed-on: https://gerrit.libreoffice.org/71667 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/config/optionsdlg.cxx')
-rw-r--r--unotools/source/config/optionsdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/config/optionsdlg.cxx b/unotools/source/config/optionsdlg.cxx
index 93cfe5d1a0bc..d63af0441701 100644
--- a/unotools/source/config/optionsdlg.cxx
+++ b/unotools/source/config/optionsdlg.cxx
@@ -146,7 +146,7 @@ void SvtOptionsDlgOptions_Impl::ReadNode( const OUString& _rNode, NodeType _eTyp
{
OUString sNodes( sNode + sSet );
Sequence< OUString > aNodes = GetNodeNames( sNodes );
- if ( aNodes.getLength() > 0 )
+ if ( aNodes.hasElements() )
{
for ( sal_uInt32 n = 0; n < static_cast<sal_uInt32>(aNodes.getLength()); ++n )
{