Changeset View
Changeset View
Standalone View
Standalone View
src/lib/definition.cpp
Context not available. | |||||
783 | return Definition(d.lock()); | 783 | return Definition(d.lock()); | ||
---|---|---|---|---|---|
784 | return Definition(); | 784 | return Definition(); | ||
785 | } | 785 | } | ||
786 | | ||||
787 | bool DefinitionRef::operator==(const DefinitionRef &other) const | ||||
788 | { | ||||
789 | if (d.expired() != other.d.expired()) { | ||||
790 | return false; | ||||
791 | } | ||||
792 | | ||||
793 | return d.expired() || d.lock().get() == other.d.lock().get(); | ||||
794 | } | ||||
Context not available. |