summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/gio/gio_content.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-03-31 21:16:02 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-04-01 09:54:41 +0200
commitc1c817de2780684e41ce5c5783ac895bcf06ab4c (patch)
treeeffd715f0529def033f9d55191f3d082248601ab /ucb/source/ucp/gio/gio_content.cxx
parentbc4f06a80a234ae4a90864a075df1e94ced3045a (diff)
Use isEmpty instead of comparing getLength to 0 (ucb)
Change-Id: I31f91295e1e34efbd0e2b7d2c463f2ca19b512e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113429 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'ucb/source/ucp/gio/gio_content.cxx')
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index ed8eedbadf41..7bb39eb616a3 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -712,7 +712,7 @@ css::uno::Sequence< css::uno::Any > Content::setPropertyValues(
continue;
}
- if ( aNewTitle.getLength() <= 0 )
+ if ( aNewTitle.isEmpty() )
{
aRet[ n ] <<= css::lang::IllegalArgumentException
( "Empty title not allowed!",