Code cleanups

on behalf of Lebedev, see issue 1355
This commit is contained in:
Oliver Duis
2012-05-06 22:10:37 +02:00
parent 686188d6bb
commit 1483ecb47c
125 changed files with 750 additions and 747 deletions

View File

@@ -32,7 +32,7 @@ void LWButtonSet::add (LWButton* b) {
buttons.push_back (b);
}
void LWButtonSet::getMinimalDimensions (int& w, int& h) {
void LWButtonSet::getMinimalDimensions (int& w, int& h) const {
w=0; h=0;
for (size_t i=0; i<buttons.size(); i++) {
@@ -146,7 +146,7 @@ void LWButtonSet::setButtonListener (LWButtonListener* bl) {
buttons[i]->setButtonListener (bl);
}
void LWButtonSet::getAllocatedDimensions (int& w, int& h) {
void LWButtonSet::getAllocatedDimensions (int& w, int& h) const {
w = aw;
h = ah;
@@ -162,7 +162,7 @@ Glib::ustring LWButtonSet::getToolTip (int x, int y) {
for (size_t i=0; i<buttons.size(); i++) {
Glib::ustring ttip = buttons[i]->getToolTip (x, y);
if (ttip!="")
if (!ttip.empty())
return ttip;
}
return "";