From eb119ecb58cce24813b37108fce4c0f343bdc2ab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Apr 2012 05:27:52 +0300 Subject: Checks after checks... --- src/gui/widgets/browserbox.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/browserbox.cpp') diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 6b5263aa9..be04b99aa 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -106,8 +106,6 @@ void BrowserBox::addRow(const std::string &row, bool atTop) std::string tmp = row; std::string newRow; size_t idx1; - size_t idx2; - size_t idx3; gcn::Font *font = getFont(); if (getWidth() < 0) @@ -122,8 +120,8 @@ void BrowserBox::addRow(const std::string &row, bool atTop) idx1 = tmp.find("@@"); while (idx1 != std::string::npos) { - idx2 = tmp.find("|", idx1); - idx3 = tmp.find("@@", idx2); + size_t idx2 = tmp.find("|", idx1); + size_t idx3 = tmp.find("@@", idx2); if (idx2 == std::string::npos || idx3 == std::string::npos) break; @@ -677,7 +675,7 @@ std::string BrowserBox::getTextAtPos(const int x, const int y) if (x < textX || y < textY) return ""; // mouse position ourside of correct widget (outside of tab) - textX = x - textX; +// textX = x - textX; textY = y - textY; std::string str = ""; -- cgit v1.2.3-60-g2f50