Initialize all members and use nullptr instead of 0.

This commit is contained in:
Teo Mrnjavac 2015-06-13 21:33:20 +02:00
parent 9bded2dcfc
commit 94a1f44fd7
2 changed files with 6 additions and 3 deletions

View File

@ -22,8 +22,11 @@
#include "keyboardpreview.h"
KeyBoardPreview::KeyBoardPreview(QWidget* parent) :
QWidget(parent)
KeyBoardPreview::KeyBoardPreview( QWidget* parent )
: QWidget( parent )
, space( 0 )
, usable_width( 0 )
, key_w( 0 )
{
setMinimumSize(700, 191);

View File

@ -40,7 +40,7 @@ class KeyBoardPreview : public QWidget
{
Q_OBJECT
public:
explicit KeyBoardPreview(QWidget* parent = 0);
explicit KeyBoardPreview( QWidget* parent = nullptr );
void setLayout(QString layout);
void setVariant(QString variant);