summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-27 19:35:12 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-27 19:35:12 +0300
commit4db8641fd12c6e11257a6a45fcb2e1948fe4bcb1 (patch)
tree6766b3b9b98bfb518d9580ea2eb2caa61a6bfefb /src/gui/widgets/browserbox.cpp
parentd78eb448f235f80667378f57d325ee0d3fb0a633 (diff)
downloadManaVerse-4db8641fd12c6e11257a6a45fcb2e1948fe4bcb1.tar.gz
ManaVerse-4db8641fd12c6e11257a6a45fcb2e1948fe4bcb1.tar.bz2
ManaVerse-4db8641fd12c6e11257a6a45fcb2e1948fe4bcb1.tar.xz
ManaVerse-4db8641fd12c6e11257a6a45fcb2e1948fe4bcb1.zip
Move keys replace code from browserbox into browserboxtools.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 13de696e9..bd565b3d6 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -231,19 +231,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
if (mEnableKeys)
{
- idx1 = tmp.find("###");
- while (idx1 != std::string::npos)
- {
- const size_t idx2 = tmp.find(';', idx1);
- if (idx2 == std::string::npos)
- break;
-
- const std::string str = inputManager.getKeyValueByNameLong(
- tmp.substr(idx1 + 3, idx2 - idx1 - 3));
- tmp.replace(idx1, idx2 - idx1 + 1, str);
-
- idx1 = tmp.find("###");
- }
+ BrowserBoxTools::replaceKeys(tmp);
}
idx1 = tmp.find("@@");