summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-01 05:27:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-01 05:27:52 +0300
commiteb119ecb58cce24813b37108fce4c0f343bdc2ab (patch)
treea4fca4d8d6a65b587b39ac2bc63c774eaba99012 /src/gui
parent761682b6254a3d43e65ff45e07683c61afa6f1e4 (diff)
downloadmanaplus-eb119ecb58cce24813b37108fce4c0f343bdc2ab.tar.gz
manaplus-eb119ecb58cce24813b37108fce4c0f343bdc2ab.tar.bz2
manaplus-eb119ecb58cce24813b37108fce4c0f343bdc2ab.tar.xz
manaplus-eb119ecb58cce24813b37108fce4c0f343bdc2ab.zip
Checks after checks...
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/browserbox.cpp8
1 files changed, 3 insertions, 5 deletions
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 = "";