replace all instances of NULL with nullptr
This commit is contained in:
@@ -20,7 +20,7 @@ namespace messages {
|
||||
|
||||
LazyLoadedImage::LazyLoadedImage(const QString &url, qreal scale, const QString &name,
|
||||
const QString &tooltip, const QMargins &margin, bool isHat)
|
||||
: _currentPixmap(NULL)
|
||||
: _currentPixmap(nullptr)
|
||||
, _currentFrame(0)
|
||||
, _currentFrameOffset(0)
|
||||
, _url(url)
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
int getWidth() const
|
||||
{
|
||||
if (_currentPixmap == NULL) {
|
||||
if (_currentPixmap == nullptr) {
|
||||
return 16;
|
||||
}
|
||||
return _currentPixmap->width();
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
int getHeight() const
|
||||
{
|
||||
if (_currentPixmap == NULL) {
|
||||
if (_currentPixmap == nullptr) {
|
||||
return 16;
|
||||
}
|
||||
return _currentPixmap->height();
|
||||
|
||||
@@ -22,7 +22,7 @@ Word::Word(LazyLoadedImage *image, Type type, const QString ©text, const QSt
|
||||
// Text word
|
||||
Word::Word(const QString &text, Type type, const QColor &color, const QString ©text,
|
||||
const QString &tooltip, const Link &link)
|
||||
: _image(NULL)
|
||||
: _image(nullptr)
|
||||
, _text(text)
|
||||
, _color(color)
|
||||
, _isImage(false)
|
||||
|
||||
Reference in New Issue
Block a user