fixup! Fix warnings

This commit is contained in:
Martin Delille 2021-12-07 12:06:33 +01:00
parent b2ad2e287b
commit 300d50945c
No known key found for this signature in database
GPG Key ID: C073D887B6E32DE5
3 changed files with 8 additions and 2 deletions

View File

@ -826,7 +826,7 @@ Q_OBJECT
public: public:
explicit QtAwesome(QObject *parent = nullptr); explicit QtAwesome(QObject *parent = QTAWESOME_NULL);
virtual ~QtAwesome(); virtual ~QtAwesome();
void init( const QString& fontname ); void init( const QString& fontname );

View File

@ -9,7 +9,7 @@
QtAwesomeAnimation::QtAwesomeAnimation(QWidget *parentWidget, int interval, int step) QtAwesomeAnimation::QtAwesomeAnimation(QWidget *parentWidget, int interval, int step)
: parentWidgetRef_( parentWidget ) : parentWidgetRef_( parentWidget )
, timer_( nullptr ) , timer_( QTAWESOME_NULL )
, interval_( interval ) , interval_( interval )
, step_( step ) , step_( step )
, angle_( 0.0f ) , angle_( 0.0f )

View File

@ -1,6 +1,12 @@
#ifndef QTAWESOMEANIMATION_H #ifndef QTAWESOMEANIMATION_H
#define QTAWESOMEANIMATION_H #define QTAWESOMEANIMATION_H
#if __cplusplus <= 199711L
#define QTAWESOME_NULL NULL
#else
#define QTAWESOME_NULL nullptr
#endif
#include <QObject> #include <QObject>
class QPainter; class QPainter;