| Index: Source/bindings/core/v8/Nullable.h
|
| diff --git a/Source/bindings/core/v8/Nullable.h b/Source/bindings/core/v8/Nullable.h
|
| index 6d3cb441a790f2c515ad27c55221c621e7d0c893..88c5698f4c8cff237c66a3049917ced8c08e899e 100644
|
| --- a/Source/bindings/core/v8/Nullable.h
|
| +++ b/Source/bindings/core/v8/Nullable.h
|
| @@ -33,11 +33,15 @@ public:
|
| return *this;
|
| }
|
|
|
| + void set(const T& value)
|
| + {
|
| + m_value = value;
|
| + m_isNull = false;
|
| + }
|
| const T& get() const { ASSERT(!m_isNull); return m_value; }
|
| + T& get() { ASSERT(!m_isNull); return m_value; }
|
| bool isNull() const { return m_isNull; }
|
|
|
| - operator bool() const { return !m_isNull && m_value; }
|
| -
|
| bool operator==(const Nullable& other) const
|
| {
|
| return (m_isNull && other.m_isNull) || (!m_isNull && !other.m_isNull && m_value == other.m_value);
|
|
|