aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/parser
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-25 01:39:44 +0000
committerJohannes Schickel2010-01-25 01:39:44 +0000
commitaed02365ec81e77b3c8aa4f4ecd9a9d3893326f2 (patch)
tree95f119e687a666f65aad5041910c43bdfd4f2929 /engines/sci/parser
parentec14cd6e6add76ce4f719edd7ce508d67ebd9f14 (diff)
downloadscummvm-rg350-aed02365ec81e77b3c8aa4f4ecd9a9d3893326f2.tar.gz
scummvm-rg350-aed02365ec81e77b3c8aa4f4ecd9a9d3893326f2.tar.bz2
scummvm-rg350-aed02365ec81e77b3c8aa4f4ecd9a9d3893326f2.zip
Strip trailing spaces/tabs.
svn-id: r47541
Diffstat (limited to 'engines/sci/parser')
-rw-r--r--engines/sci/parser/vocabulary.cpp8
-rw-r--r--engines/sci/parser/vocabulary.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/parser/vocabulary.cpp b/engines/sci/parser/vocabulary.cpp
index 0e84a34cfd..2cf47f00c3 100644
--- a/engines/sci/parser/vocabulary.cpp
+++ b/engines/sci/parser/vocabulary.cpp
@@ -126,7 +126,7 @@ bool Vocabulary::loadParserWords() {
// First try to load the SCI0 vocab resource.
Resource *resource = _resMan->findResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SCI0_MAIN_VOCAB), 0);
-
+
if (!resource) {
warning("SCI0: Could not find a main vocabulary, trying SCI01");
resource = _resMan->findResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SCI1_MAIN_VOCAB), 0);
@@ -206,7 +206,7 @@ const char *Vocabulary::getAnyWordFromGroup(int group) {
bool Vocabulary::loadSuffixes() {
// Determine if we can find a SCI1 suffix vocabulary first
Resource* resource = NULL;
-
+
if (_vocabVersion == kVocabularySCI0)
resource = _resMan->findResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SCI0_SUFFIX_VOCAB), 1);
else
@@ -245,12 +245,12 @@ bool Vocabulary::loadSuffixes() {
void Vocabulary::freeSuffixes() {
Resource* resource = NULL;
-
+
if (_vocabVersion == kVocabularySCI0)
resource = _resMan->findResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SCI0_SUFFIX_VOCAB), 0);
else
resource = _resMan->findResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SCI1_SUFFIX_VOCAB), 0);
-
+
if (resource)
_resMan->unlockResource(resource);
diff --git a/engines/sci/parser/vocabulary.h b/engines/sci/parser/vocabulary.h
index d624ccc3fb..5121a684a2 100644
--- a/engines/sci/parser/vocabulary.h
+++ b/engines/sci/parser/vocabulary.h
@@ -251,13 +251,13 @@ public:
* Adds a new synonym to the list
*/
void addSynonym(synonym_t syn) { _synonyms.push_back(syn); }
-
+
/**
* Clears the list of synonyms
*/
void clearSynonyms() { _synonyms.clear(); }
-
- /**
+
+ /**
* Synonymizes a token list
* Parameters: (ResultWordList &) words: The word list to synonymize
*/