summaryrefslogtreecommitdiffstats
path: root/src/gsttools/qgstreameraudioinputselector.cpp
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2019-12-13 14:52:14 +0100
committerRolf Eike Beer <eb@emlix.com>2020-01-06 09:28:08 +0100
commit2030c8827971973514b2b65479cffc473f2b34c4 (patch)
treee1af859c9c462d687f0c255b21bc87538a016cb5 /src/gsttools/qgstreameraudioinputselector.cpp
parent06ab7039e7043b24e18184cd510af07bd2a646d5 (diff)
gsttools: use nullptr instead of NULL
Change-Id: I3b9b75b9f55bbb13bd5751a49b072102af675c4f Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'src/gsttools/qgstreameraudioinputselector.cpp')
-rw-r--r--src/gsttools/qgstreameraudioinputselector.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gsttools/qgstreameraudioinputselector.cpp b/src/gsttools/qgstreameraudioinputselector.cpp
index 72d079cbc..36b36dda4 100644
--- a/src/gsttools/qgstreameraudioinputselector.cpp
+++ b/src/gsttools/qgstreameraudioinputselector.cpp
@@ -124,23 +124,23 @@ void QGstreamerAudioInputSelector::updateAlsaDevices()
}
n = hints;
- while (*n != NULL) {
+ while (*n != nullptr) {
char *name = snd_device_name_get_hint(*n, "NAME");
char *descr = snd_device_name_get_hint(*n, "DESC");
char *io = snd_device_name_get_hint(*n, "IOID");
- if ((name != NULL) && (descr != NULL)) {
- if ( io == NULL || qstrcmp(io,"Input") == 0 ) {
+ if ((name != nullptr) && (descr != nullptr)) {
+ if (io == nullptr || qstrcmp(io, "Input") == 0) {
m_names.append(QLatin1String("alsa:")+QString::fromUtf8(name));
m_descriptions.append(QString::fromUtf8(descr));
}
}
- if (name != NULL)
+ if (name != nullptr)
free(name);
- if (descr != NULL)
+ if (descr != nullptr)
free(descr);
- if (io != NULL)
+ if (io != nullptr)
free(io);
n++;
}