diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/icon.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/slider.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/tab.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 3 |
5 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 91098074..d189947d 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -233,9 +233,8 @@ void BrowserBox::mousePressed(gcn::MouseEvent &event) LinkIterator i = find_if(mLinks.begin(), mLinks.end(), MouseOverLink(event.getX(), event.getY())); - if (i != mLinks.end()) { + if (i != mLinks.end()) mLinkHandler->handleLink(i->link); - } } void BrowserBox::mouseMoved(gcn::MouseEvent &event) diff --git a/src/gui/widgets/icon.cpp b/src/gui/widgets/icon.cpp index 0e29f603..21a33e10 100644 --- a/src/gui/widgets/icon.cpp +++ b/src/gui/widgets/icon.cpp @@ -48,7 +48,7 @@ void Icon::setImage(Image *image) void Icon::draw(gcn::Graphics *g) { - if(mImage) + if (mImage) { Graphics *graphics = static_cast<Graphics*>(g); const int x = (getWidth() - mImage->getWidth()) / 2; diff --git a/src/gui/widgets/slider.cpp b/src/gui/widgets/slider.cpp index 1e9fe4f5..66fe780d 100644 --- a/src/gui/widgets/slider.cpp +++ b/src/gui/widgets/slider.cpp @@ -175,7 +175,8 @@ void Slider::draw(gcn::Graphics *graphics) x += w; static_cast<Graphics*>(graphics)->drawImage(hEnd, x, y); - } else + } + else { static_cast<Graphics*>(graphics)->drawImage(hStartHi, x, y); diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp index 99a95d96..a49c4f12 100644 --- a/src/gui/widgets/tab.cpp +++ b/src/gui/widgets/tab.cpp @@ -150,7 +150,8 @@ void Tab::draw(gcn::Graphics *graphics) mode = TAB_SELECTED; // if tab is selected, it doesnt need to highlight activity mHighlighted = false; - } else if (mHasMouse) + } + else if (mHasMouse) { mode = TAB_HIGHLIGHTED; } diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 537aa2cc..51ae6e8f 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -46,7 +46,8 @@ WhisperTab::~WhisperTab() void WhisperTab::handleInput(const std::string &msg) { - if (msg.empty()) { + if (msg.empty()) + { chatLog(_("Cannot send empty chat!"), BY_SERVER, false); return; } |