diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/browserbox_unittest.cc | 1 |
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@@"; |