2
0
forked from Ivasoft/DSView

change boost thread as std lib, and boost mutex

This commit is contained in:
dreamsourcelabTAI
2021-11-02 18:40:01 +08:00
parent 9361684c63
commit c392bf72c1
70 changed files with 689 additions and 703 deletions

View File

@@ -28,8 +28,7 @@
#include "dsosignal.h"
#include <QPainter>
#include <boost/foreach.hpp>
using namespace boost;
using namespace std;
@@ -48,7 +47,8 @@ XCursor::XCursor(View &view, QColor &colour,
{
_dsoSig = NULL;
const std::vector< boost::shared_ptr<Signal> > sigs(_view.session().get_signals());
BOOST_FOREACH(const boost::shared_ptr<Signal> s, sigs) {
for(auto &s : sigs) {
boost::shared_ptr<DsoSignal> dsoSig;
if ((dsoSig = dynamic_pointer_cast<DsoSignal>(s)))
if (dsoSig->enabled()) {