diff options
author | Max Horn | 2008-09-29 11:07:39 +0000 |
---|---|---|
committer | Max Horn | 2008-09-29 11:07:39 +0000 |
commit | 1776c75566603d4ecba657e4d4cd67a769ddb43d (patch) | |
tree | 0d797a4f71451bd5002a6b77cdba9a4a89d8fb3d /engines | |
parent | ad621e2623c643a9ea4683d49a95171453419d5f (diff) | |
download | scummvm-rg350-1776c75566603d4ecba657e4d4cd67a769ddb43d.tar.gz scummvm-rg350-1776c75566603d4ecba657e4d4cd67a769ddb43d.tar.bz2 scummvm-rg350-1776c75566603d4ecba657e4d4cd67a769ddb43d.zip |
Don't use File::name() needlessly (i.e. if you still know which file you just opened :)
svn-id: r34685
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/predictive.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp index 21f9256e70..09472235ad 100644 --- a/engines/agi/predictive.cpp +++ b/engines/agi/predictive.cpp @@ -491,7 +491,8 @@ void AgiEngine::loadDict(void) { ConfMan.registerDefault("predictive_dictionary", "pred.dic"); uint32 time1 = _system->getMillis(); - if (!inFile.open(ConfMan.get("predictive_dictionary"))) + Common::String inFileName(ConfMan.get("predictive_dictionary")); + if (!inFile.open(inFileName)) return; char *ptr; @@ -505,7 +506,7 @@ void AgiEngine::loadDict(void) { inFile.read(_predictiveDictText, size); _predictiveDictText[size] = 0; uint32 time2 = _system->getMillis(); - debug("Time to read %s: %d bytes, %d ms", inFile.name(), size, time2-time1); + debug("Time to read %s: %d bytes, %d ms", inFileName.c_str(), size, time2-time1); inFile.close(); ptr = _predictiveDictText; |