Skip to content

Commit ce52f37

Browse files
committed
Cleanup comparisons
1 parent 17c9559 commit ce52f37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/glaxnimate/producer_glaxnimate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static bool createQApplicationIfNeeded(mlt_service service)
142142
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
143143
if (getenv("DISPLAY") == 0 && getenv("WAYLAND_DISPLAY") == 0) {
144144
const char *qt_qpa = getenv("QT_QPA_PLATFORM");
145-
if (qt_qpa == 0 || strcmp(qt_qpa, "offscreen") != 0) {
145+
if (!qt_qpa || strcmp(qt_qpa, "offscreen")) {
146146
mlt_log_error(service,
147147
"The MLT Glaxnimate module requires a X11 or Wayland environment.\n"
148148
"Please either run melt from a session with a display server or use a "

src/modules/qt/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool createQApplicationIfNeeded(mlt_service service)
3838
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) && !defined(Q_OS_ANDROID)
3939
if (getenv("DISPLAY") == 0 && getenv("WAYLAND_DISPLAY") == 0) {
4040
const char *qt_qpa = getenv("QT_QPA_PLATFORM");
41-
if (qt_qpa == 0 || strcmp(qt_qpa, "offscreen") != 0) {
41+
if (!qt_qpa || strcmp(qt_qpa, "offscreen")) {
4242
mlt_log_error(service,
4343
"The MLT Qt module requires a X11 or Wayland environment.\n"
4444
"Please either run melt from a session with a display server or use a "

0 commit comments

Comments
 (0)