oox/source/drawingml/textbody.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3c62ed6b2f2a4bb75619b0737f733a2db2f0827d Author: Caolán McNamara <caol...@redhat.com> Date: Thu Nov 30 14:42:07 2017 +0000 size() cannot be < 0 so just == 0 -> empty() Change-Id: Ie56cc70ba5d60ded64d011f9d8e8fa9895789a38 Reviewed-on: https://gerrit.libreoffice.org/45591 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits