]> granicus.if.org Git - icinga2/commitdiff
Build fix for 2.3.x
authorGunnar Beutner <gunnar@beutner.name>
Fri, 13 Mar 2015 11:00:30 +0000 (12:00 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 16 Mar 2015 12:45:18 +0000 (13:45 +0100)
lib/base/workqueue.cpp
lib/base/workqueue.hpp

index c3259309aee781594011edf6c292c74acc406b8c..615d21d3affde43fbd38e5eafa1590131bb3f44e 100644 (file)
@@ -166,7 +166,7 @@ void WorkQueue::ReportExceptions(const String& facility) const
            << exceptions.size() << " error" << (exceptions.size() != 1 ? "s" : "");
 }
 
-size_t WorkQueue::GetLength(void)
+size_t WorkQueue::GetLength(void) const
 {
        boost::mutex::scoped_lock lock(m_Mutex);
 
index 871955d55a5537d42dd0444ac8ca2dfa9cf6368e..5d5de74655362fa76006e00a199f68cfaa0ed2ee 100644 (file)
@@ -52,7 +52,7 @@ public:
 
        bool IsWorkerThread(void) const;
 
-       size_t GetLength(void);
+       size_t GetLength(void) const;
 
        void SetExceptionCallback(const ExceptionCallback& callback);