Commit 2d8eeeb2 authored by twanvl's avatar twanvl

fix: GetMember used to have two copies of GetDefaultMember instead of just a single one

parent f00bf150
...@@ -58,14 +58,14 @@ class GetDefaultMember { ...@@ -58,14 +58,14 @@ class GetDefaultMember {
void handle(const ScriptValueP&); void handle(const ScriptValueP&);
void handle(const ScriptP&); void handle(const ScriptP&);
private: private:
ScriptValueP value; ///< The value we found (if any) ScriptValueP value; ///< The value we found (if any)
}; };
// ----------------------------------------------------------------------------- : GetMember // ----------------------------------------------------------------------------- : GetMember
/// Find a member with a specific name using reflection /// Find a member with a specific name using reflection
/** The member is wrapped in a ScriptValue */ /** The member is wrapped in a ScriptValue */
class GetMember : private GetDefaultMember { class GetMember {
public: public:
/// Construct a member getter that looks for the given name /// Construct a member getter that looks for the given name
GetMember(const String& name); GetMember(const String& name);
...@@ -105,7 +105,7 @@ class GetMember : private GetDefaultMember { ...@@ -105,7 +105,7 @@ class GetMember : private GetDefaultMember {
} }
template <typename K, typename V> void handle(const DelayedIndexMaps<K,V>&); template <typename K, typename V> void handle(const DelayedIndexMaps<K,V>&);
template <typename K, typename V> void handle(const DelayedIndexMapsData<K,V>&); template <typename K, typename V> void handle(const DelayedIndexMapsData<K,V>&);
private: private:
const String& target_name; ///< The name we are looking for const String& target_name; ///< The name we are looking for
GetDefaultMember gdm; ///< Object to store and retrieve the value GetDefaultMember gdm; ///< Object to store and retrieve the value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment