diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-23 21:29:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-23 21:29:47 +0300 |
commit | 90132a83c309b5ae0c699e4fbbb7c62656321301 (patch) | |
tree | 9bd6bbac6df7cfcd67d30535d30ef1b8bd25ab3f /src/gui/widgets | |
parent | 9c1e1e3c8af21342da1bdf616a800ff373cad433 (diff) | |
download | plus-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.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@@"; |