diff options
author | Paul Gilbert | 2016-05-11 18:54:28 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:39:16 -0400 |
commit | 9c8d4f234b3eb8f825b51a225466228c3cf0c727 (patch) | |
tree | 91deaee30de02ce986fcd87cab4ef88e6c56895f /engines/titanic/true_talk/tt_word.cpp | |
parent | a27d49a43ccc699751b049e0631209c214ef71de (diff) | |
download | scummvm-rg350-9c8d4f234b3eb8f825b51a225466228c3cf0c727.tar.gz scummvm-rg350-9c8d4f234b3eb8f825b51a225466228c3cf0c727.tar.bz2 scummvm-rg350-9c8d4f234b3eb8f825b51a225466228c3cf0c727.zip |
TITANIC: Split TTsynonymNode into it's own file, and rename to TTsynonym
Diffstat (limited to 'engines/titanic/true_talk/tt_word.cpp')
-rw-r--r-- | engines/titanic/true_talk/tt_word.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/true_talk/tt_word.cpp b/engines/titanic/true_talk/tt_word.cpp index 3fa5381684..431a1d8767 100644 --- a/engines/titanic/true_talk/tt_word.cpp +++ b/engines/titanic/true_talk/tt_word.cpp @@ -42,7 +42,7 @@ int TTword::readSyn(SimpleFile *file) { return 5; // Create new synanym node - TTsynonymNode *synNode = new TTsynonymNode(mode, str.c_str(), val1); + TTsynonym *synNode = new TTsynonym(mode, str.c_str(), val1); if (_synP) { // A synonym already exists, so add new one as a tail @@ -56,7 +56,7 @@ int TTword::readSyn(SimpleFile *file) { return 0; } -void TTword::appendNode(TTsynonymNode *node) { +void TTword::appendNode(TTsynonym *node) { if (_synP) _synP->addNode(node); else @@ -99,9 +99,9 @@ bool TTword::testFileHandle(SimpleFile *file) const { return true; } -TTword *TTword::scanCopy(const TTString &str, TTsynonymNode *node, int mode) { +TTword *TTword::scanCopy(const TTString &str, TTsynonym *node, int mode) { if (_synP) { - TTstringNode *strNode = _synP->scan(_synP, str, mode); + TTstringNode *strNode = TTsynonym::findByName(_synP, str, mode); if (strNode) { node->copy(strNode); node->_pPrior = nullptr; |