aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-21 13:36:09 (GMT)
committerfluxgen <fluxgen>2004-01-21 13:36:09 (GMT)
commit9c0272004e2509a2206d94dfbe30bb035c8c6d67 (patch)
treea97b2a4257af1ea1f1f4398314d1c9abe9808b44 /src/Toolbar.cc
parent5685dc91951477ee0e0a280d1f30ec737cc95550 (diff)
downloadfluxbox_pavel-9c0272004e2509a2206d94dfbe30bb035c8c6d67.zip
fluxbox_pavel-9c0272004e2509a2206d94dfbe30bb035c8c6d67.tar.bz2
using empty instead of size
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 7cda0b0..7dd4c58 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Toolbar.cc,v 1.137 2004/01/16 11:41:38 fluxgen Exp $ 25// $Id: Toolbar.cc,v 1.138 2004/01/21 13:36:09 fluxgen Exp $
26 26
27#include "Toolbar.hh" 27#include "Toolbar.hh"
28 28
@@ -370,7 +370,7 @@ void Toolbar::reconfigure() {
370 tools.begin(), 370 tools.begin(),
371 FbTk::StringUtil::toLower); 371 FbTk::StringUtil::toLower);
372 372
373 if (tools.size() == m_tools.size() && tools.size() != 0) { 373 if (!tools.empty() && tools.size() == m_tools.size()) {
374 StringList::const_iterator tool_it = tools.begin(); 374 StringList::const_iterator tool_it = tools.begin();
375 StringList::const_iterator current_tool_it = m_tools.begin(); 375 StringList::const_iterator current_tool_it = m_tools.begin();
376 StringList::const_iterator tool_it_end = tools.end(); 376 StringList::const_iterator tool_it_end = tools.end();