summaryrefslogtreecommitdiff
path: root/plugins/CSList
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CSList')
-rw-r--r--plugins/CSList/src/cslist.cpp6
-rw-r--r--plugins/CSList/src/cslist.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp
index 75bd6d6ddb..4edddb051e 100644
--- a/plugins/CSList/src/cslist.cpp
+++ b/plugins/CSList/src/cslist.cpp
@@ -420,7 +420,7 @@ void CSWindow::toggleFilter()
{
TCHAR filterText[255];
GetDlgItemText(m_handle, IDC_FILTER_FIELD, filterText, SIZEOF(filterText));
- if ( lstrlen( filterText ) > 0 )
+ if (filterText[0] != 0)
SetDlgItemText( m_handle, IDC_FILTER_FIELD, TEXT( ""));
}
}
@@ -635,9 +635,7 @@ void CSListView::addItem( StatusItem* item, int itemNumber )
lvi.cchTextMax = 256;
lvi.iItem = ListView_GetItemCount( m_handle );
lvi.lParam = itemNumber;
-#if ( WINVER >= 0x501 )
- lvi.iGroupId = ( item->m_bFavourite == TRUE ) ? 0 : 1;
-#endif
+ lvi.iGroupId = item->m_bFavourite ? 0 : 1;
// first column
lvi.iSubItem = 0;
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;