mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Defensive programming: GC_VIDEO_*
.. It seems like a good idea to provide a default value,
or you could just add a different #else case, e.g.,
.arg("no GC_VIDEO_ value provided"), or fail compilation.
This commit is contained in:
committed by
Mark Liversedge
parent
8e21f7e3cf
commit
499cc060bf
@@ -311,14 +311,14 @@ QString GcCrashDialog::versionHTML()
|
||||
.arg(libusb)
|
||||
.arg(wfapi)
|
||||
.arg(vlc)
|
||||
#ifdef GC_VIDEO_NONE
|
||||
.arg("none")
|
||||
#elif defined GC_VIDEO_QUICKTIME
|
||||
#if defined GC_VIDEO_QUICKTIME
|
||||
.arg("quicktime")
|
||||
#elif defined GC_VIDEO_QT5
|
||||
.arg("qt5")
|
||||
#elif defined GC_VIDEO_VLC
|
||||
.arg("vlc")
|
||||
#else
|
||||
.arg("none")
|
||||
#endif
|
||||
.arg(src)
|
||||
.arg(QSslSocket::supportsSsl() ? "yes" : "none")
|
||||
|
||||
Reference in New Issue
Block a user