diff options
Diffstat (limited to 'ACEXML/common/AttributesImpl.cpp')
-rw-r--r-- | ACEXML/common/AttributesImpl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ACEXML/common/AttributesImpl.cpp b/ACEXML/common/AttributesImpl.cpp index 95eb4c2742b..6866c31e268 100644 --- a/ACEXML/common/AttributesImpl.cpp +++ b/ACEXML/common/AttributesImpl.cpp @@ -34,7 +34,7 @@ ACEXML_AttributesImpl::addAttribute (const ACEXML_Char *uri, { if (this->isDuplicate (uri, localName, qName)) return -1; - int length = this->attrs_.size (); + size_t length = this->attrs_.size (); this->attrs_.size (length+1); this->setAttribute (length, uri, @@ -42,7 +42,7 @@ ACEXML_AttributesImpl::addAttribute (const ACEXML_Char *uri, qName, type, value); - return length; + return ACE_static_cast (int, length); } int @@ -50,10 +50,10 @@ ACEXML_AttributesImpl::addAttribute (const ACEXML_Attribute &att) { if (this->isDuplicate (att.uri(), att.localName(), att.qName())) return -1; - int length = this->attrs_.size (); + size_t length = this->attrs_.size (); this->attrs_.size (length+1); this->attrs_[length] = att; - return length; + return ACE_static_cast (int, length); } int @@ -97,7 +97,7 @@ ACEXML_AttributesImpl::getIndex (const ACEXML_Char *qName) { for (size_t i = 0; i < this->attrs_.size (); i++) if (ACE_OS::strcmp (qName, this->attrs_[i].qName ()) == 0) - return i; + return ACE_static_cast (int, i); return -1; } @@ -109,7 +109,7 @@ ACEXML_AttributesImpl::getIndex (const ACEXML_Char *uri, for (size_t i = 0; i < this->attrs_.size (); i++) if (ACE_OS::strcmp (uri, this->attrs_[i].uri ()) == 0 && ACE_OS::strcmp (localPart, this->attrs_[i].localName ()) == 0) - return i; + return ACE_static_cast (int, i); return -1; } |