avoid trailing |

This commit is contained in:
Mathieu Lacage
2008-04-11 16:58:00 -07:00
parent 556d973168
commit ca687b56f6

View File

@@ -187,10 +187,11 @@ std::string
AttributeList::SerializeToString (void) const
{
std::ostringstream oss;
for (Attrs::const_iterator i = m_attributes.begin (); i != m_attributes.end (); i++)
for (Attrs::const_iterator i = m_attributes.begin (); i != m_attributes.end ();)
{
std::string name = LookupAttributeFullNameByChecker (i->checker);
oss << name << "=" << i->value.SerializeToString (i->checker);
i++;
if (i != m_attributes.end ())
{
oss << "|";