From 3c62ed6b2f2a4bb75619b0737f733a2db2f0827d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 30 Nov 2017 14:42:07 +0000 Subject: size() cannot be < 0 so just == 0 -> empty() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie56cc70ba5d60ded64d011f9d8e8fa9895789a38 Reviewed-on: https://gerrit.libreoffice.org/45591 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- oox/source/drawingml/textbody.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox') 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; -- cgit