Skip to content

Commit

Permalink
Trivial initializer cleanup.
Browse files Browse the repository at this point in the history
Remove initialization of members to their default values.  Add one
default value.
  • Loading branch information
linuxdude42 committed Mar 12, 2019
1 parent 9a174ff commit cdd074c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions mythplugins/mythgallery/mythgallery/galleryfilter.cpp
Expand Up @@ -25,9 +25,7 @@ GalleryFilter::GalleryFilter(bool loaddefaultsettings)
}
}

GalleryFilter::GalleryFilter(const GalleryFilter &gfs) :
m_dirFilter(""), m_typeFilter(kTypeFilterAll),
m_sort(kSortOrderUnsorted), m_changed_state(0)
GalleryFilter::GalleryFilter(const GalleryFilter &gfs)
{
*this = gfs;
}
Expand Down
4 changes: 1 addition & 3 deletions mythtv/libs/libmythbase/mythcommandlineparser.cpp
Expand Up @@ -202,9 +202,7 @@ CommandLineArg::CommandLineArg(QString name, QVariant::Type type, QVariant def)
*/
CommandLineArg::CommandLineArg(QString name) :
ReferenceCounter(QString("CommandLineArg:%1").arg(name)),
m_given(false), m_converted(false), m_name(name),
m_deprecated(""), m_removed(""), m_removedversion(""),
m_type(QVariant::Invalid)
m_name(name)
{
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcommandlineparser.h
Expand Up @@ -93,7 +93,7 @@ class MBASE_PUBLIC CommandLineArg : public ReferenceCounter
QString m_deprecated;
QString m_removed;
QString m_removedversion;
QVariant::Type m_type;
QVariant::Type m_type {QVariant::Invalid};
QVariant m_default;
QVariant m_stored;

Expand Down

0 comments on commit cdd074c

Please sign in to comment.