diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-02 21:46:35 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-02 21:46:35 -0400 |
commit | 56b3a49f63d35dd793b3a5dc1e11b04855b7953c (patch) | |
tree | e2c4f48dc200efe380f3a4e73342c7a128e503c2 | |
parent | 3339d69d17a921df80f2e007bc56d747d81c3eff (diff) | |
download | fork-ledger-56b3a49f63d35dd793b3a5dc1e11b04855b7953c.tar.gz fork-ledger-56b3a49f63d35dd793b3a5dc1e11b04855b7953c.tar.bz2 fork-ledger-56b3a49f63d35dd793b3a5dc1e11b04855b7953c.zip |
Fixed some warnings caused by using g++ 4.3.
m--------- | lib/utfcpp | 0 | ||||
-rw-r--r-- | src/scope.h | 10 | ||||
-rw-r--r-- | src/value.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/utfcpp b/lib/utfcpp -Subproject 54676a423c356bf128f9c8fc0e7ea68cbcb7587 +Subproject 629800e376c01b261a5116b2ba8702711ad8ace 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(); } diff --git a/src/value.h b/src/value.h index 93e96228..5b034d03 100644 --- a/src/value.h +++ b/src/value.h @@ -876,7 +876,7 @@ public: return as_sequence().end(); } - const std::size_t size() const { + std::size_t size() const { if (is_null()) return 0; else if (is_sequence()) |