From 5a7dbb19f74e49e1cb511c2cff5cec7f4eb109b8 Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Mon, 20 Oct 2014 01:10:08 +0200 Subject: [PATCH] Code clarity --- apps/openmw/mwdialogue/dialoguemanagerimp.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/openmw/mwdialogue/dialoguemanagerimp.cpp b/apps/openmw/mwdialogue/dialoguemanagerimp.cpp index aae3d9b41..eff54fbc0 100644 --- a/apps/openmw/mwdialogue/dialoguemanagerimp.cpp +++ b/apps/openmw/mwdialogue/dialoguemanagerimp.cpp @@ -87,23 +87,23 @@ namespace MWDialogue for (std::vector::iterator tok = hypertext.begin(); tok != hypertext.end(); ++tok) { - Misc::StringUtils::toLower(tok->mText); + std::string topicId = Misc::StringUtils::lowerCase(tok->mText); if (tok->isExplicitLink()) { // calculation of standard form for all hyperlinks - size_t asterisk_count = HyperTextParser::removePseudoAsterisks(tok->mText); + size_t asterisk_count = HyperTextParser::removePseudoAsterisks(topicId); for(; asterisk_count > 0; --asterisk_count) - tok->mText.append("*"); + topicId.append("*"); - tok->mText = mTranslationDataStorage.topicStandardForm(tok->mText); + topicId = mTranslationDataStorage.topicStandardForm(topicId); } if (tok->isImplicitKeyword() && mTranslationDataStorage.hasTranslation()) continue; - if (std::find(mActorKnownTopics.begin(), mActorKnownTopics.end(), tok->mText) != mActorKnownTopics.end()) - mKnownTopics[tok->mText] = true; + if (std::find(mActorKnownTopics.begin(), mActorKnownTopics.end(), topicId) != mActorKnownTopics.end()) + mKnownTopics[topicId] = true; } updateTopics();