chenluhua1980
2026-01-06 4d9d8d22e3666076988c30afb4e7c6fe365c19aa
SourceCode/Bond/Servo/CAttributeVector.cpp
@@ -17,15 +17,15 @@
      m_attributes.clear();
   }
   void CAttributeVector::addAttribute(CAttribute* pAttribute, BOOL bReplace/* = FALSE*/)
   BOOL CAttributeVector::addAttribute(CAttribute* pAttribute, BOOL bReplace/* = FALSE*/)
   {
      if (!pAttribute) { 
         return;
         return FALSE;
      }
      const std::string& name = pAttribute->getName();
      if (name.empty()) { 
         return;
         return FALSE;
      }
      if (bReplace) {
@@ -41,6 +41,7 @@
      }
      m_attributes.push_back(pAttribute);
      return TRUE;
   }
   void CAttributeVector::addAttributeVector(CAttributeVector& av)
@@ -80,4 +81,9 @@
      ASSERT(index < m_attributes.size());
      return m_attributes[index];
   }
   std::vector<CAttribute*>& CAttributeVector::getAttributes()
   {
      return m_attributes;
   }
}