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:
@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user