Skip to content

Commit

Permalink
cppcheck: Fix CastIntegerToAddressAtReturn warning in mythmedia.h.
Browse files Browse the repository at this point in the history
Be explicit about the conversion from a QPointer back to a regular
pointer.
  • Loading branch information
linuxdude42 committed Oct 2, 2020
1 parent fab4502 commit 7c926ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythmedia.h
Expand Up @@ -188,7 +188,7 @@ class MBASE_PUBLIC MythMediaEvent : public QEvent
~MythMediaEvent() override;

MythMediaStatus getOldStatus(void) const { return m_oldStatus; }
MythMediaDevice* getDevice(void) { return m_device; }
MythMediaDevice* getDevice(void) { return m_device.isNull() ? nullptr : m_device.data(); }

static Type kEventType;

Expand Down

0 comments on commit 7c926ae

Please sign in to comment.