Skip to content

Commit

Permalink
Add constness to old Persistent comparison operators
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Jun 13, 2016
1 parent 62e7c84 commit bd43cb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nan_persistent_pre_12_inl.h
Expand Up @@ -64,22 +64,22 @@ class PersistentBase {
inline void Empty() { persistent.Clear(); }

template<typename S>
inline bool operator==(const PersistentBase<S> &that) {
inline bool operator==(const PersistentBase<S> &that) const {
return this->persistent == that.persistent;
}

template<typename S>
inline bool operator==(const v8::Local<S> &that) {
inline bool operator==(const v8::Local<S> &that) const {
return this->persistent == that;
}

template<typename S>
inline bool operator!=(const PersistentBase<S> &that) {
inline bool operator!=(const PersistentBase<S> &that) const {
return !operator==(that);
}

template<typename S>
inline bool operator!=(const v8::Local<S> &that) {
inline bool operator!=(const v8::Local<S> &that) const {
return !operator==(that);
}

Expand Down

0 comments on commit bd43cb9

Please sign in to comment.