Salome HOME
updated copyright message
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_RefAttr.cpp
index 30c15a9240a3c1b4f00e4441e6154026bb717047..08ae5b8709022496c5c7fc7f7b7627c1b4968923 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,7 @@
 #include "ModelHighAPI_Interface.h"
 //--------------------------------------------------------------------------------------
 ModelHighAPI_RefAttr::ModelHighAPI_RefAttr()
-: myVariantType(VT_ATTRIBUTE)
+: myVariantType(VT_OBJECT)
 {
 }
 
@@ -79,7 +79,7 @@ void ModelHighAPI_RefAttr::appendToList(
 //--------------------------------------------------------------------------------------
 bool ModelHighAPI_RefAttr::isEmpty() const
 {
-  return !(myAttribute && myObject);
+  return !(myAttribute || myObject);
 }
 
 //--------------------------------------------------------------------------------------