summaryrefslogtreecommitdiff
path: root/src/parser/symbol_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/symbol_table.h')
-rw-r--r--src/parser/symbol_table.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/parser/symbol_table.h b/src/parser/symbol_table.h
index e4aec930e..d790a1c84 100644
--- a/src/parser/symbol_table.h
+++ b/src/parser/symbol_table.h
@@ -78,14 +78,12 @@ public:
/**
* Returns the last binding expression of the name.
+ * Requires the name to have a binding in the table.
*/
ObjectType getObject(const std::string name) throw () {
- ObjectType result;
table_iterator find = d_nameBindings.find(name);
- if(find != d_nameBindings.end()) {
- result = find->second.top();
- }
- return result;
+ Assert(find != d_nameBindings.end());
+ return find->second.top();
}
/**
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback