fix : allow comparing nullptr == nullptr -> true

This commit is contained in:
artemp 2014-05-28 15:40:25 +01:00
parent aa5bff2a3f
commit 7572ba58cb

View file

@ -108,7 +108,7 @@ bool layer::operator==(layer const& rhs) const
(cache_features_ == rhs.cache_features_) &&
(group_by_ == rhs.group_by_) &&
(styles_ == rhs.styles_) &&
((ds_ && rhs.ds_) ? *ds_ == *rhs.ds_ : false) &&
((ds_ && rhs.ds_) ? *ds_ == *rhs.ds_ : ds_ == rhs.ds_) &&
(buffer_size_ == rhs.buffer_size_) &&
(maximum_extent_ == rhs.maximum_extent_);
}