diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-31 14:17:03 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-31 15:31:31 +0200 |
commit | 6f176c90dee0963be15ff594b7ff120233795e6a (patch) | |
tree | 8733cf55d6fbdfba60265896b370af5ec40c3136 /oox | |
parent | fac65bb9d831a854298d6cba09ad6159d15b8323 (diff) |
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@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/textbody.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |