summaryrefslogtreecommitdiff
path: root/src/scope.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-11 16:03:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-11 17:02:25 -0400
commitdea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch)
tree7908da76c67ae5172882306a319bf26df81b73b4 /src/scope.cc
parentd580079df892c30d023b3211d6c4611c17b11f8f (diff)
downloadfork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip
Untabified all source files
Diffstat (limited to 'src/scope.cc')
-rw-r--r--src/scope.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scope.cc b/src/scope.cc
index 72cf4ad3..faad352a 100644
--- a/src/scope.cc
+++ b/src/scope.cc
@@ -38,7 +38,7 @@ namespace ledger {
scope_t * scope_t::default_scope = NULL;
void symbol_scope_t::define(const symbol_t::kind_t kind,
- const string& name, expr_t::ptr_op_t def)
+ const string& name, expr_t::ptr_op_t def)
{
DEBUG("scope.symbols", "Defining '" << name << "' = " << def);
@@ -53,15 +53,15 @@ void symbol_scope_t::define(const symbol_t::kind_t kind,
symbols->erase(i);
result = symbols->insert(symbol_map::value_type(symbol_t(kind, name, def),
- def));
+ def));
if (! result.second)
throw_(compile_error,
- _("Redefinition of '%1' in the same scope") << name);
+ _("Redefinition of '%1' in the same scope") << name);
}
}
expr_t::ptr_op_t symbol_scope_t::lookup(const symbol_t::kind_t kind,
- const string& name)
+ const string& name)
{
if (symbols) {
symbol_map::const_iterator i = symbols->find(symbol_t(kind, name));