summaryrefslogtreecommitdiff
path: root/src/value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cpp')
-rw-r--r--src/value.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/value.cpp b/src/value.cpp
index 6f91f44..92704a3 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -1829,7 +1829,7 @@ const Value &Value::set(const char *key, int size, const Value &value)
*/
HashMember<int> Value::operator[](int index)
{
- return HashMember<int>(this, index);
+ return HashMember<int>(_val, index);
}
/**
@@ -1840,7 +1840,7 @@ HashMember<int> Value::operator[](int index)
*/
HashMember<std::string> Value::operator[](const std::string &key)
{
- return HashMember<std::string>(this, key);
+ return HashMember<std::string>(_val, key);
}
/**
@@ -1851,7 +1851,7 @@ HashMember<std::string> Value::operator[](const std::string &key)
*/
HashMember<std::string> Value::operator[](const char *key)
{
- return HashMember<std::string>(this, key);
+ return HashMember<std::string>(_val, key);
}
/**