mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
removed redundant check against 0
This commit is contained in:
parent
6c55f7f36c
commit
c0b76904c7
1 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue