aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-13 20:07:10 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-13 20:07:10 (GMT)
commitb10d58588ad7a50f91212acb19c3c2cc493cb3a4 (patch)
treee0fe40d242c90189fc78f5159ac20c8fc8c2dee7 /src/FbWinFrame.cc
parentdeb6a1ebf43f458b720abbc6a7180e9a8e04771a (diff)
downloadfluxbox-b10d58588ad7a50f91212acb19c3c2cc493cb3a4.zip
fluxbox-b10d58588ad7a50f91212acb19c3c2cc493cb3a4.tar.bz2
cosmetic code cleaning
* use FbTk::StringUtil::number2String() to avoid 'sprintf' * use FbTk::Util::clamp() * use FbTk::STLUtil::destroyAndClear() * whitespaces
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index c8b1735..4c56d49 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -598,16 +598,9 @@ void FbWinFrame::addRightButton(FbTk::Button *btn) {
598} 598}
599 599
600void FbWinFrame::removeAllButtons() { 600void FbWinFrame::removeAllButtons() {
601 // destroy left side 601
602 while (!m_buttons_left.empty()) { 602 FbTk::STLUtil::destroyAndClear(m_buttons_left);
603 delete m_buttons_left.back(); 603 FbTk::STLUtil::destroyAndClear(m_buttons_right);
604 m_buttons_left.pop_back();
605 }
606 // destroy right side
607 while (!m_buttons_right.empty()) {
608 delete m_buttons_right.back();
609 m_buttons_right.pop_back();
610 }
611} 604}
612 605
613void FbWinFrame::createTab(FbTk::Button &button) { 606void FbWinFrame::createTab(FbTk::Button &button) {