diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-30 14:42:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-30 16:55:49 +0100 |
commit | 3c62ed6b2f2a4bb75619b0737f733a2db2f0827d (patch) | |
tree | 4667cb7ca3b8d718a6bc11108335fbf3aba9f550 /oox | |
parent | c5d0cffbf42f41349a8575ba52456d9cb07e91c7 (diff) |
size() cannot be < 0 so just == 0 -> empty()
Change-Id: Ie56cc70ba5d60ded64d011f9d8e8fa9895789a38
Reviewed-on: https://gerrit.libreoffice.org/45591
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.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 8f3a08cf5733..e57e24635561 100644 --- a/oox/source/drawingml/textbody.cxx +++ b/oox/source/drawingml/textbody.cxx @@ -73,7 +73,7 @@ void TextBody::insertAt( bool TextBody::isEmpty() const { - if ( maParagraphs.size() <= 0 ) + if (maParagraphs.empty()) return true; if ( maParagraphs.size() > 1 ) return false; |