diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-03-27 16:49:16 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-03-28 00:09:13 +0100 |
| commit | 00c5040bc3917de5e97efa98f47ac2157f441c7e (patch) | |
| tree | a5e1c5350f3e8fb4306cda5aa778c78e99c46c51 /src/client/QXmppCallStream.cpp | |
| parent | 52b509a9703a67819193de8482552ed9894f834d (diff) | |
| download | qxmpp-00c5040bc3917de5e97efa98f47ac2157f441c7e.tar.gz | |
QXmppCall: Refactoring and clean up
Fixes things like:
- detaching Qt containers (missing std::as_const)
- new signal/slot syntax
- missing emit keyword
- more 'auto'
- comparison of int and uint
Diffstat (limited to 'src/client/QXmppCallStream.cpp')
| -rw-r--r-- | src/client/QXmppCallStream.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/QXmppCallStream.cpp b/src/client/QXmppCallStream.cpp index f96188d5..b222286e 100644 --- a/src/client/QXmppCallStream.cpp +++ b/src/client/QXmppCallStream.cpp @@ -32,7 +32,6 @@ #endif #include <cstring> - #include <gst/gst.h> /// \cond @@ -223,7 +222,7 @@ void QXmppCallStreamPrivate::addEncoder(QXmppCallPrivate::GstCodec &codec) qFatal("Failed to create encoder"); return; } - for (auto &encProp : codec.encProps) { + for (auto &encProp : std::as_const(codec.encProps)) { g_object_set(encoder, encProp.name.toLatin1().data(), encProp.value, nullptr); } |
