From 275959c64eaf91c088f426ea451ab14fab31c098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 5 Nov 2011 23:18:26 +0200 Subject: Use empty() instead of size() to check container emptiness. --- bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitmap.c') diff --git a/bitmap.c b/bitmap.c index c43609f..e6e5606 100644 --- a/bitmap.c +++ b/bitmap.c @@ -164,7 +164,7 @@ bool cText2SkinBitmap::LoadNonXpm(const char *Filename, int height, int width, i int w, h; std::vector::iterator it; readImages(&images, Filename); - if (images.size() == 0) { + if (images.empty()) { esyslog("ERROR: text2skin: Couldn't load %s", Filename); return false; } -- cgit v1.2.3