summaryrefslogtreecommitdiff
path: root/src/listeners/vendingmodelistener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/vendingmodelistener.cpp')
-rw-r--r--src/listeners/vendingmodelistener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listeners/vendingmodelistener.cpp b/src/listeners/vendingmodelistener.cpp
index 9ccb8b745..b0bd687f8 100644
--- a/src/listeners/vendingmodelistener.cpp
+++ b/src/listeners/vendingmodelistener.cpp
@@ -30,7 +30,7 @@ void VendingModeListener::distributeEvent(const bool b)
it, mListeners)
{
VendingModeListener *const listener = *it;
- if (listener)
+ if (listener != nullptr)
listener->vendingEnabled(b);
}
}