do not mix pimpl() and impl for no reason

This commit is contained in:
v4hn 2020-07-29 17:46:17 +02:00 committed by Robert Haschke
parent 03c7f55fcc
commit 6bebe3f3ed

View File

@ -218,8 +218,8 @@ void Task::enableIntrospection(bool enable) {
impl->introspection_.reset(new Introspection(impl));
else if (!enable && impl->introspection_) {
// reset introspection instance of all stages
pimpl()->setIntrospection(nullptr);
pimpl()->traverseStages(
impl->setIntrospection(nullptr);
impl->traverseStages(
[](Stage& stage, int /*depth*/) {
stage.pimpl()->setIntrospection(nullptr);
return true;