move from deprecated boost.signals to boost.signals2 library
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <QString>
|
||||
|
||||
namespace Base
|
||||
@@ -180,17 +180,14 @@ private:
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class ConnectionBlocker {
|
||||
typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection;
|
||||
bool b;
|
||||
Connection& c;
|
||||
typedef boost::signals2::connection Connection;
|
||||
typedef boost::signals2::shared_connection_block ConnectionBlock;
|
||||
ConnectionBlock blocker;
|
||||
|
||||
public:
|
||||
ConnectionBlocker(Connection& c) : c(c) {
|
||||
b = c.blocked();
|
||||
c.block(true);
|
||||
ConnectionBlocker(Connection& c) : blocker(c) {
|
||||
}
|
||||
~ConnectionBlocker() {
|
||||
c.block(b);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user