summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
commit608dfae22e1b5145210314ca6c7268420dd639c8 (patch)
tree5f7317be7e895a1f8aede182ea69ef56d456c54f /src/gui/widgets/browserbox.cpp
parent9eb389060d44672c311a36348036eab297859e7e (diff)
downloadplus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.gz
plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.bz2
plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.xz
plus-608dfae22e1b5145210314ca6c7268420dd639c8.zip
Fix some issues found by automatic checks.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 20fc6c81c..0141eafbc 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -227,7 +227,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
idx1 = tmp.find("###");
while (idx1 != std::string::npos)
{
- const size_t idx2 = tmp.find(";", idx1);
+ const size_t idx2 = tmp.find(';', idx1);
if (idx2 == std::string::npos)
break;
@@ -242,7 +242,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
idx1 = tmp.find("@@");
while (idx1 != std::string::npos)
{
- const size_t idx2 = tmp.find("|", idx1);
+ const size_t idx2 = tmp.find('|', idx1);
const size_t idx3 = tmp.find("@@", idx2);
if (idx2 == std::string::npos || idx3 == std::string::npos)
@@ -290,7 +290,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
}
else
{ // item link
- size_t idx = bLink.link.find(",");
+ size_t idx = bLink.link.find(',');
if (idx != std::string::npos)
{
const int id = atoi(bLink.link.substr(0, idx).c_str());
@@ -359,7 +359,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
idx1 = newRow.find("\\t");
while (idx1 != std::string::npos)
{
- const size_t idx2 = newRow.find(";", idx1);
+ const size_t idx2 = newRow.find(';', idx1);
if (idx2 == std::string::npos)
break;
@@ -445,7 +445,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
if (nextChar < sz && tempRow.at(nextChar) == ' ')
{
int nextSpacePos = CAST_U32(
- tempRow.find(" ", (nextChar + 1)));
+ tempRow.find(' ', (nextChar + 1)));
if (nextSpacePos <= 0)
nextSpacePos = CAST_U32(sz) - 1U;