void CWordCompletion::AddWord(const string& word, bool startOfLine, bool unitName) { if (!word.empty()) { words[word] = WordProperties(startOfLine, unitName); } return; }
void CWordCompletion::AddWord(const std::string& word, bool startOfLine, bool unitName, bool miniMap) { if (!word.empty()) { if (words.find(word) != words.end()) { LOG_SL("WordCompletion", L_DEBUG, "Tried to add already present word: %s", word.c_str()); return; } words[word] = WordProperties(startOfLine, unitName, miniMap); } }