summaryrefslogtreecommitdiff
path: root/src/scope.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/scope.cc')
-rw-r--r--src/scope.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/scope.cc b/src/scope.cc
index b2a7b17b..00327159 100644
--- a/src/scope.cc
+++ b/src/scope.cc
@@ -35,7 +35,8 @@
namespace ledger {
-scope_t * scope_t::default_scope = NULL;
+scope_t * scope_t::default_scope = NULL;
+empty_scope_t * scope_t::empty_scope = NULL;
void symbol_scope_t::define(const symbol_t::kind_t kind,
const string& name, expr_t::ptr_op_t def)
@@ -53,8 +54,8 @@ void symbol_scope_t::define(const symbol_t::kind_t kind,
assert(i != symbols->end());
symbols->erase(i);
- result = symbols->insert(symbol_map::value_type(symbol_t(kind, name, def),
- def));
+ result = symbols->insert(symbol_map::value_type
+ (symbol_t(kind, name, def), def));
if (! result.second)
throw_(compile_error,
_("Redefinition of '%1' in the same scope") << name);