diff --git a/src/blackmisc/simulation/aircraftmatcher.cpp b/src/blackmisc/simulation/aircraftmatcher.cpp index ce03e5a45..e73fc72fc 100644 --- a/src/blackmisc/simulation/aircraftmatcher.cpp +++ b/src/blackmisc/simulation/aircraftmatcher.cpp @@ -39,7 +39,7 @@ namespace BlackMisc if (m_initState != NotInitialized) { return; } m_initWorker = BlackMisc::CWorker::fromTask(this, "CAircraftMatcher::initImpl", [this]() { - initImpl(); + this->initImpl(); }); } diff --git a/src/blackmisc/simulation/fscommon/aircraftcfgparser.cpp b/src/blackmisc/simulation/fscommon/aircraftcfgparser.cpp index 44414087a..56d4643e1 100644 --- a/src/blackmisc/simulation/fscommon/aircraftcfgparser.cpp +++ b/src/blackmisc/simulation/fscommon/aircraftcfgparser.cpp @@ -47,7 +47,7 @@ namespace BlackMisc [this, rootDirectory, excludedDirectories]() { bool ok; - auto aircraftCfgEntriesList = parseImpl(rootDirectory, excludedDirectories, &ok); + auto aircraftCfgEntriesList = this->parseImpl(rootDirectory, excludedDirectories, &ok); return std::make_pair(aircraftCfgEntriesList, ok); }); m_parserWorker->thenWithResult>(this, [this](const std::pair &pair) diff --git a/src/blackmisc/worker.h b/src/blackmisc/worker.h index 1938e8c27..aea996c68 100644 --- a/src/blackmisc/worker.h +++ b/src/blackmisc/worker.h @@ -220,13 +220,13 @@ namespace BlackMisc //! \tparam R The return type of the task. //! \threadsafe template - void thenWithResult(F functor) { then([this, functor]() { functor(result()); }); } + void thenWithResult(F functor) { then([this, functor]() { functor(this->result()); }); } //! Connects to a functor or method to which will be passed the result when the task is finished. //! \tparam R The return type of the task. //! \threadsafe template - void thenWithResult(T *context, F functor) { then(context, [this, context, functor]() { invoke(context, functor, result()); }); } + void thenWithResult(T *context, F functor) { then(context, [this, context, functor]() { invoke(context, functor, this->result()); }); } //! Returns the result of the task, waiting for it to finish if necessary. //! \tparam R The return type of the task.