summaryrefslogtreecommitdiff
path: root/src/scope.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-02 21:46:35 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-02 21:46:35 -0400
commit56b3a49f63d35dd793b3a5dc1e11b04855b7953c (patch)
treee2c4f48dc200efe380f3a4e73342c7a128e503c2 /src/scope.h
parent3339d69d17a921df80f2e007bc56d747d81c3eff (diff)
downloadfork-ledger-56b3a49f63d35dd793b3a5dc1e11b04855b7953c.tar.gz
fork-ledger-56b3a49f63d35dd793b3a5dc1e11b04855b7953c.tar.bz2
fork-ledger-56b3a49f63d35dd793b3a5dc1e11b04855b7953c.zip
Fixed some warnings caused by using g++ 4.3.
Diffstat (limited to 'src/scope.h')
-rw-r--r--src/scope.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scope.h b/src/scope.h
index aef49e51..174d52fe 100644
--- a/src/scope.h
+++ b/src/scope.h
@@ -199,7 +199,7 @@ public:
args.pop_back();
}
- const std::size_t size() const {
+ std::size_t size() const {
return args.size();
}
};
@@ -276,7 +276,7 @@ public:
operator bool() { return value; }
T operator *();
- const T operator *() const;
+ T operator *() const;
T * operator->() {
return &**this;
@@ -291,7 +291,7 @@ inline long var_t<long>::operator *() {
return value->to_long();
}
template <>
-inline const long var_t<long>::operator *() const {
+inline long var_t<long>::operator *() const {
return value->to_long();
}
@@ -300,7 +300,7 @@ inline string var_t<string>::operator *() {
return value->to_string();
}
template <>
-inline const string var_t<string>::operator *() const {
+inline string var_t<string>::operator *() const {
return value->to_string();
}
@@ -309,7 +309,7 @@ inline datetime_t var_t<datetime_t>::operator *() {
return value->to_datetime();
}
template <>
-inline const datetime_t var_t<datetime_t>::operator *() const {
+inline datetime_t var_t<datetime_t>::operator *() const {
return value->to_datetime();
}