diff --git a/modules/gfx/src/gfx_node.cc b/modules/gfx/src/gfx_node.cc index 8d417aeec6660d3ecf3aa689cf68d3e90c781fa7..813ce6f413e677e8b884ae191f4b3a608b27a47c 100644 --- a/modules/gfx/src/gfx_node.cc +++ b/modules/gfx/src/gfx_node.cc @@ -141,7 +141,7 @@ bool GfxNode::IsAttachedToScene() const void GfxNode::Add(GfxObjP obj) { GfxNodeP node=obj; - this->Add(obj); + this->Add(node); } void GfxNode::Remove(GfxObjP obj) diff --git a/modules/mol/base/src/chem_type.hh b/modules/mol/base/src/chem_type.hh index eac806433400daeb1ead20ecf88ddff558b64fc7..ff3a6b059241ebd76a9e9b77512fd87bc38147fc 100644 --- a/modules/mol/base/src/chem_type.hh +++ b/modules/mol/base/src/chem_type.hh @@ -52,7 +52,7 @@ struct ChemType { } bool operator!=(const ChemType& cc) const { - return this->operator!=(cc); + return cc.chem_type_!=chem_type_; } bool IsIon() const {