removed redundant check against 0

This commit is contained in:
Jez Higgins 2010-01-09 22:34:29 +00:00
parent 6c55f7f36c
commit c0b76904c7

View file

@ -516,10 +516,10 @@ public:
*/
void setType(unsigned int index, const string_type& type)
{
if(index >= 0 && index < attributes_.size())
if(index >= 0 && index < attributes_.size())
attributes_[index].type_ = type;
else
badIndex(index);
else
badIndex(index);
} // setType
/**
@ -533,10 +533,10 @@ public:
*/
void setValue(unsigned int index, const string_type& value)
{
if(index >= 0 && index < attributes_.size())
if(index < attributes_.size())
attributes_[index].value_ = value;
else
badIndex(index);
else
badIndex(index);
} // setURI
private: