]> granicus.if.org Git - icinga2/commitdiff
Use boost::bind for WorkQueue::SetExceptionCallback.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 5 Nov 2013 12:59:30 +0000 (13:59 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 5 Nov 2013 12:59:30 +0000 (13:59 +0100)
Refs #5002

components/db_ido_mysql/idomysqlconnection.cpp
components/db_ido_pgsql/idopgsqlconnection.cpp

index 53d4fe778ff8859d21a207c03da3552378a7beed..a2c4c171b6306ddb876a2d4ec49cdf97ce4a3b10 100644 (file)
@@ -44,7 +44,7 @@ void IdoMysqlConnection::Start(void)
 
        m_Connected = false;
 
-       m_QueryQueue.SetExceptionCallback(&IdoMysqlConnection::ExceptionHandler);
+       m_QueryQueue.SetExceptionCallback(boost::bind(&IdoMysqlConnection::ExceptionHandler, this, _1));
 
        m_TxTimer = boost::make_shared<Timer>();
        m_TxTimer->SetInterval(5);
index 5887bb06b61825ff473adfeade41cf41fddf0fb1..86ad7f5a7fac772a927e6c355ad004a70a75b14d 100644 (file)
@@ -44,7 +44,7 @@ void IdoPgsqlConnection::Start(void)
 
        m_Connection = NULL;
 
-       m_QueryQueue.SetExceptionCallback(&IdoPgsqlConnection::ExceptionHandler);
+       m_QueryQueue.SetExceptionCallback(boost::bind(&IdoPgsqlConnection::ExceptionHandler, this, _1));
 
        m_TxTimer = boost::make_shared<Timer>();
        m_TxTimer->SetInterval(5);