Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added missing const qualifier to TopologyReader::Link::Attributes{Beg…
…in,End}()
  • Loading branch information
npcardoso committed Nov 18, 2014
commit e3a486eb38aba286208515b964e95906457fa6bd
4 changes: 2 additions & 2 deletions src/topology-read/model/topology-reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ TopologyReader::Link::SetAttribute (const std::string &name, const std::string &
}

TopologyReader::Link::ConstAttributesIterator
TopologyReader::Link::AttributesBegin (void)
TopologyReader::Link::AttributesBegin (void) const
{
return m_linkAttr.begin ();
}
TopologyReader::Link::ConstAttributesIterator
TopologyReader::Link::AttributesEnd (void)
TopologyReader::Link::AttributesEnd (void) const
{
return m_linkAttr.end ();
}
Expand Down
4 changes: 2 additions & 2 deletions src/topology-read/model/topology-reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ class TopologyReader : public Object
* \brief Returns an iterator to the begin of the attributes.
* \return a const iterator to the first attribute of a link.
*/
ConstAttributesIterator AttributesBegin (void);
ConstAttributesIterator AttributesBegin (void) const;
/**
* \brief Returns an iterator to the end of the attributes.
* \return a const iterator to the last attribute of a link.
*/
ConstAttributesIterator AttributesEnd (void);
ConstAttributesIterator AttributesEnd (void) const;

private:
Link ();
Expand Down