use the m_ prefix on all variables stored in a class
This is a flavour thing btw, but if you do it with some variables you should do it with all of them. This helps avoid variable name clashes too that often happens in constructors
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Word::Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip)
|
||||
{
|
||||
this->image = image;
|
||||
this->m_image = image;
|
||||
m_isImage = true;
|
||||
m_type = type;
|
||||
m_copyText = copytext;
|
||||
@@ -11,8 +11,8 @@ Word::Word(LazyLoadedImage* image, Type type, const QString& copytext, const QSt
|
||||
|
||||
Word::Word(const QString& text, Type type, const QString& copytext, const QString& tooltip)
|
||||
{
|
||||
this->image = NULL;
|
||||
this->text = text;
|
||||
this->m_image = NULL;
|
||||
this->m_text = text;
|
||||
m_isImage = false;
|
||||
m_type = type;
|
||||
m_copyText = copytext;
|
||||
|
||||
Reference in New Issue
Block a user