[vlc-devel] [PATCH] qt: messages: use C++ atomic instead of Qt's

Pierre Lamot pierre at videolabs.io
Mon Feb 24 10:18:44 CET 2020


LGTM

On 2020-02-23 20:34, Alexandre Janniaux wrote:
> It removes a deprecation warning on QBasicAtomicInteger<T>::load which
> is not solvable with Qt 5.12 version at the same time.

at the same time as what?

> ---
>  modules/gui/qt/dialogs/messages/messages.hpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/modules/gui/qt/dialogs/messages/messages.hpp
> b/modules/gui/qt/dialogs/messages/messages.hpp
> index c2fd2850d1..91571f2d35 100644
> --- a/modules/gui/qt/dialogs/messages/messages.hpp
> +++ b/modules/gui/qt/dialogs/messages/messages.hpp
> @@ -28,7 +28,7 @@
>  #include "dialogs/messages/ui_messages_panel.h"
>  #include <stdarg.h>
>  #include <QMutex>
> -#include <QAtomicInt>
> +#include <atomic>
> 
>  class QPushButton;
>  class QTreeWidget;
> @@ -48,7 +48,7 @@ private:
>      void sinkMessage( const MsgEvent * );
>      bool matchFilter( const QString& );
> 
> -    QAtomicInt verbosity;
> +    std::atomic<int> verbosity;
>      static void MsgCallback( void *, int, const vlc_log_t *, const 
> char *,
>                               va_list );


More information about the vlc-devel mailing list