oox/source/drawingml/textbody.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6f176c90dee0963be15ff594b7ff120233795e6a Author: Mike Kaganski <[email protected]> AuthorDate: Wed Mar 31 14:17:03 2021 +0200 Commit: Mike Kaganski <[email protected]> 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 <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
