From 98b61f88357961ff0945943decba8a34ed7f59a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 6 Nov 2011 00:29:25 +0200 Subject: Remove unused variable. --- bitmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitmap.c b/bitmap.c index e6e5606..74a61e9 100644 --- a/bitmap.c +++ b/bitmap.c @@ -37,8 +37,7 @@ cText2SkinBitmap *cText2SkinBitmap::Load(const std::string &Filename, int Alpha, res = mCache[spec]; Dprintf("..cache ok\n"); } else { - int pos; - if ((pos = fname.find('*')) != -1) { + if (fname.find('*') != std::string::npos) { glob_t gbuf; if (glob(fname.c_str(), 0, NULL, &gbuf) == 0){ Dprintf("GLOB: FOUND %s\n", gbuf.gl_pathv[0]); -- cgit v1.2.3