Permalink
Browse files

watch: Use empty() instead of !size()

Yay for useless micro-optimizations. ;-)

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information...
1 parent 8eda266 commit 84199641650e2f9a80d0a872782100135d36323b @psychon psychon committed Feb 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/watch.cpp
View
@@ -358,7 +358,7 @@ class CWatcherMod : public CModule {
}
void Dump() {
- if (!m_lsWatchers.size()) {
+ if (m_lsWatchers.empty()) {
PutModule("You have no entries.");
return;
}

0 comments on commit 8419964

Please sign in to comment.