summaryrefslogtreecommitdiff
path: root/src/scope.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-29 18:23:57 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-29 18:23:57 -0400
commit05c77351e458c08873c813264005f61f828b5383 (patch)
treefa83d3826d8c113b5ec273671ce6cab3d9fe5388 /src/scope.h
parent119b5dc1975bfc00fb3f376e6ba28594dee12583 (diff)
downloadfork-ledger-05c77351e458c08873c813264005f61f828b5383.tar.gz
fork-ledger-05c77351e458c08873c813264005f61f828b5383.tar.bz2
fork-ledger-05c77351e458c08873c813264005f61f828b5383.zip
Stopped using the generic "unsigned int" in favor of more specific types.
Diffstat (limited to 'src/scope.h')
-rw-r--r--src/scope.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scope.h b/src/scope.h
index db9191de..db74a45c 100644
--- a/src/scope.h
+++ b/src/scope.h
@@ -151,10 +151,10 @@ public:
return args;
}
- value_t& operator[](const unsigned int index) {
+ value_t& operator[](const std::size_t index) {
return args[index];
}
- const value_t& operator[](const unsigned int index) const {
+ const value_t& operator[](const std::size_t index) const {
return args[index];
}
@@ -182,9 +182,9 @@ public:
: value(scope.resolve(name).template as_pointer<T>()) {
TRACE_CTOR(ptr_t, "scope_t&, const string&");
}
- ptr_t(call_scope_t& scope, const unsigned int idx)
+ ptr_t(call_scope_t& scope, const std::size_t idx)
: value(scope[idx].template as_pointer<T>()) {
- TRACE_CTOR(ptr_t, "call_scope_t&, const unsigned int");
+ TRACE_CTOR(ptr_t, "call_scope_t&, const std::size_t");
}
~ptr_t() throw() {
TRACE_DTOR(ptr_t);
@@ -215,9 +215,9 @@ public:
}
}
- var_t(call_scope_t& scope, const unsigned int idx)
+ var_t(call_scope_t& scope, const std::size_t idx)
{
- TRACE_CTOR(var_t, "call_scope_t&, const unsigned int");
+ TRACE_CTOR(var_t, "call_scope_t&, const std::size_t");
if (idx < scope.size())
value = scope[idx];