summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scope.h10
-rw-r--r--src/value.h2
2 files changed, 6 insertions, 6 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();
}
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())