From 222cf76001d835961537214eba38037ef40a8aa0 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 14 Apr 2017 12:19:04 +0900 Subject: starmath: size() > 0 -> !empty() Change-Id: Id7c73870f58ebf04c2703cdf8b3d0ffe258b2c0d Reviewed-on: https://gerrit.libreoffice.org/36545 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/inc/cursor.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath/inc') diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index 39502ff9dfc5..c499b2a1de7d 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -410,7 +410,7 @@ private: SmNodeList* pList; /** Get the current terminal */ SmNode* Terminal(){ - if(pList->size() > 0) + if (!pList->empty()) return pList->front(); return nullptr; } -- cgit