TroubleListener::getWatchNumbers() returns a const ref (instead of a copy), now.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1699 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
adrian
2012-09-27 09:40:34 +00:00
parent ec7d0a78de
commit 2c1c3e8f02

View File

@ -396,10 +396,9 @@ public:
bool removeWatchNumber(unsigned troubleNum);
/**
* Returns the list of observed numbers.
* @return a copy of the list which contains all observed numbers
* @return a const reference to the list which contains all observed numbers
*/
std::vector<unsigned> getWatchNumbers() { return m_WatchNumbers; }
// FIXME: Any reason for returning a *copy* of the vector? (-> overhead!)
const std::vector<unsigned>& getWatchNumbers() const { return m_WatchNumbers; }
/**
* Checks whether a given interrupt-/trap-number is matching.
*/