diff options
author | Johannes Schickel | 2016-01-24 03:14:09 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-01-24 03:14:09 +0100 |
commit | 144765827fdfe459bd82be34661a51ffec415944 (patch) | |
tree | efcbf5472825e2507e1e6dd9a9eaff62c396329b /gui/predictivedialog.cpp | |
parent | 66a815a21433b72faaa403ae14d31cd57b80e492 (diff) | |
download | scummvm-rg350-144765827fdfe459bd82be34661a51ffec415944.tar.gz scummvm-rg350-144765827fdfe459bd82be34661a51ffec415944.tar.bz2 scummvm-rg350-144765827fdfe459bd82be34661a51ffec415944.zip |
GUI: Improve variable naming in PredictiveDialog.
Diffstat (limited to 'gui/predictivedialog.cpp')
-rw-r--r-- | gui/predictivedialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp index ad363da345..06dcd6750b 100644 --- a/gui/predictivedialog.cpp +++ b/gui/predictivedialog.cpp @@ -104,15 +104,15 @@ PredictiveDialog::PredictiveDialog() : Dialog("Predictive") { _userDictHasChanged = false; _predictiveDict.nameDict = "predictive_dictionary"; - _predictiveDict.fnameDict = "pred.dic"; + _predictiveDict.defaultFilename = "pred.dic"; _predictiveDict.dictActLine = NULL; _userDict.nameDict = "user_dictionary"; - _userDict.fnameDict = "user.dic"; + _userDict.defaultFilename = "user.dic"; _userDict.dictActLine = NULL; _unitedDict.nameDict = ""; - _unitedDict.fnameDict = ""; + _unitedDict.defaultFilename = ""; _predictiveDict.dictLine = NULL; _predictiveDict.dictText = NULL; @@ -997,19 +997,19 @@ void PredictiveDialog::loadDictionary(Common::SeekableReadStream *in, Dict &dict } void PredictiveDialog::loadAllDictionary(Dict &dict) { - ConfMan.registerDefault(dict.nameDict, dict.fnameDict); + ConfMan.registerDefault(dict.nameDict, dict.defaultFilename); if (dict.nameDict == "predictive_dictionary") { Common::File *inFile = new Common::File(); if (!inFile->open(ConfMan.get(dict.nameDict))) { - warning("Predictive Dialog: cannot read file: %s", dict.fnameDict.c_str()); + warning("Predictive Dialog: cannot read file: %s", dict.defaultFilename.c_str()); return; } loadDictionary(inFile, dict); } else { Common::InSaveFile *inFile = g_system->getSavefileManager()->openForLoading(ConfMan.get(dict.nameDict)); if (!inFile) { - warning("Predictive Dialog: cannot read file: %s", dict.fnameDict.c_str()); + warning("Predictive Dialog: cannot read file: %s", dict.defaultFilename.c_str()); return; } loadDictionary(inFile, dict); |