From 5e01c907bf4cace9542f880bae418f71c0fd0c07 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 24 Oct 2013 15:21:30 +0000 Subject: more warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@6608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CSList/src/cslist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/CSList/src/cslist.h') diff --git a/plugins/CSList/src/cslist.h b/plugins/CSList/src/cslist.h index 1a816acc69..b359367fcf 100644 --- a/plugins/CSList/src/cslist.h +++ b/plugins/CSList/src/cslist.h @@ -257,10 +257,10 @@ public: return position; } - int remove( const unsigned int item ) + int remove(const unsigned int item) { int position = 0; - if ( item < 0 || item >= m_count ) + if (item >= m_count) return -1; ListItem< T >* help = m_items; -- cgit v1.2.3