diff --git a/src/core/sal/Listener.hpp b/src/core/sal/Listener.hpp index eb0668f0..88e2e5bf 100644 --- a/src/core/sal/Listener.hpp +++ b/src/core/sal/Listener.hpp @@ -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 getWatchNumbers() { return m_WatchNumbers; } - // FIXME: Any reason for returning a *copy* of the vector? (-> overhead!) + const std::vector& getWatchNumbers() const { return m_WatchNumbers; } /** * Checks whether a given interrupt-/trap-number is matching. */