aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2016-01-24 03:37:00 +0100
committerJohannes Schickel2016-01-24 03:37:33 +0100
commit120164ba074196f2c771661dbfb4296f09ed82e1 (patch)
tree5ae2de57cbf56b0fdd417653d3c8d4bbe03df75e /gui
parent15012d1596b2ed752722b2d56a328b798b218e66 (diff)
downloadscummvm-rg350-120164ba074196f2c771661dbfb4296f09ed82e1.tar.gz
scummvm-rg350-120164ba074196f2c771661dbfb4296f09ed82e1.tar.bz2
scummvm-rg350-120164ba074196f2c771661dbfb4296f09ed82e1.zip
GUI: Reduce scope of variable in PredictiveDialog::processButton.
Diffstat (limited to 'gui')
-rw-r--r--gui/predictivedialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp
index 63b1e1b831..4e2ed0c018 100644
--- a/gui/predictivedialog.cpp
+++ b/gui/predictivedialog.cpp
@@ -439,7 +439,6 @@ void PredictiveDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 d
}
void PredictiveDialog::processButton(ButtonId button) {
- uint8 x;
static const char *const buttonStr[] = {
"1", "2", "3",
"4", "5", "6",
@@ -525,7 +524,7 @@ void PredictiveDialog::processButton(ButtonId button) {
_numMatchingWords = countWordsInString(_unitedDict.dictActLine);
break;
case kModeAbc:
- for (x = 0; x < _currentCode.size(); x++)
+ for (uint x = 0; x < _currentCode.size(); x++)
if (_currentCode[x] >= '1')
_temp[x] = buttons[_currentCode[x] - '1'][_repeatcount[x]];
_temp[_currentCode.size()] = 0;
@@ -544,7 +543,7 @@ void PredictiveDialog::processButton(ButtonId button) {
_currentWord = Common::String(tok, _currentCode.size());
}
} else if (_mode == kModeAbc) {
- x = _currentCode.size();
+ uint x = _currentCode.size();
if (x) {
if (_currentCode.lastChar() == '1' || _currentCode.lastChar() == '7' || _currentCode.lastChar() == '9')
_repeatcount[x - 1] = (_repeatcount[x - 1] + 1) % 4;