summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-23 21:29:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-23 21:29:47 +0300
commit90132a83c309b5ae0c699e4fbbb7c62656321301 (patch)
tree9bd6bbac6df7cfcd67d30535d30ef1b8bd25ab3f /src/gui/widgets
parent9c1e1e3c8af21342da1bdf616a800ff373cad433 (diff)
downloadplus-90132a83c309b5ae0c699e4fbbb7c62656321301.tar.gz
plus-90132a83c309b5ae0c699e4fbbb7c62656321301.tar.bz2
plus-90132a83c309b5ae0c699e4fbbb7c62656321301.tar.xz
plus-90132a83c309b5ae0c699e4fbbb7c62656321301.zip
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox.cpp3
-rw-r--r--src/gui/widgets/browserbox_unittest.cc1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 592283910..fc8406546 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -168,7 +168,6 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
{
std::string tmp = row;
std::string newRow;
- size_t idx1;
const Font *const font = getFont();
int linksCount = 0;
@@ -193,7 +192,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
BrowserBoxTools::replaceKeys(tmp);
}
- idx1 = tmp.find("@@");
+ size_t idx1 = tmp.find("@@");
while (idx1 != std::string::npos)
{
const size_t idx2 = tmp.find('|', idx1);
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc
index e32eaa68a..6bcc91110 100644
--- a/src/gui/widgets/browserbox_unittest.cc
+++ b/src/gui/widgets/browserbox_unittest.cc
@@ -161,6 +161,7 @@ TEST_CASE("BrowserBox tests", "browserbox")
row = "11|22<####>";
box->addRow(row);
row = "11|22##><##";
+ box->addRow(row);
row = "%%@@11|22@@";
box->addRow(row);
row = "%%2@@11|22@@";