[Libreoffice-commits] core.git: oox/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Wed Mar 31 13:32:13 UTC 2021


 oox/source/drawingml/textbody.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6f176c90dee0963be15ff594b7ff120233795e6a
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Mar 31 14:17:03 2021 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed Mar 31 15:31:31 2021 +0200

    Use isEmpty instead of comparing getLength to 0
    
    Change-Id: I9c1a0e2bce162c2222ef06f5fc4e92bac7bb1c69
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113362
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/oox/source/drawingml/textbody.cxx b/oox/source/drawingml/textbody.cxx
index 1abe31db984e..4c5495e6c040 100644
--- a/oox/source/drawingml/textbody.cxx
+++ b/oox/source/drawingml/textbody.cxx
@@ -87,7 +87,7 @@ bool TextBody::isEmpty() const
     if ( aRuns.size() > 1 )
         return false;
 
-    return aRuns[0]->getText().getLength() <= 0;
+    return aRuns[0]->getText().isEmpty();
 }
 
 OUString TextBody::toString() const


More information about the Libreoffice-commits mailing list