diff options
author | Christoph Mallon | 2012-03-13 14:53:40 +0100 |
---|---|---|
committer | Alyssa Milburn | 2012-03-13 15:43:59 +0100 |
commit | e40ba4c1354fabc0d1bd81a6ab80cd5f349d88fa (patch) | |
tree | 6569d2e7059c4e951aed077d7519f46575d56224 /common | |
parent | 612bfe40924c1d266476385d24a1b889bcf81209 (diff) | |
download | scummvm-rg350-e40ba4c1354fabc0d1bd81a6ab80cd5f349d88fa.tar.gz scummvm-rg350-e40ba4c1354fabc0d1bd81a6ab80cd5f349d88fa.tar.bz2 scummvm-rg350-e40ba4c1354fabc0d1bd81a6ab80cd5f349d88fa.zip |
JANITORIAL: Simply use *x instead of *x.get() on smart pointers.
Diffstat (limited to 'common')
-rw-r--r-- | common/translation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/translation.cpp b/common/translation.cpp index 219fce8794..2bc31c617b 100644 --- a/common/translation.cpp +++ b/common/translation.cpp @@ -232,8 +232,9 @@ bool TranslationManager::openTranslationsFile(File &inFile) { ArchiveMemberList fileList; SearchMan.listMatchingMembers(fileList, "translations.dat"); for (ArchiveMemberList::iterator it = fileList.begin(); it != fileList.end(); ++it) { - SeekableReadStream *stream = it->get()->createReadStream(); - if (stream && inFile.open(stream, it->get()->getName())) { + ArchiveMember const &m = **it; + SeekableReadStream *const stream = m.createReadStream(); + if (stream && inFile.open(stream, m.getName())) { if (checkHeader(inFile)) return true; inFile.close(); |