[Libreoffice-commits] core.git: ucb/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 1 07:55:23 UTC 2021
ucb/source/ucp/cmis/cmis_content.cxx | 2 +-
ucb/source/ucp/gio/gio_content.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c1c817de2780684e41ce5c5783ac895bcf06ab4c
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Wed Mar 31 21:16:02 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Thu Apr 1 09:54:41 2021 +0200
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 at collabora.com>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 23c3f625de19..82a0ff409da2 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -1472,7 +1472,7 @@ namespace cmis
continue;
}
- if ( aNewTitle.getLength() <= 0 )
+ if ( aNewTitle.isEmpty() )
{
aRet[ n ] <<= lang::IllegalArgumentException
( "Empty title not allowed!",
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!",
More information about the Libreoffice-commits
mailing list