Commit 86bd6d9d authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Initialize some members in default constructor of FilterEntry

parent 502e86b7
...@@ -43,14 +43,18 @@ class ILocatorFilter; ...@@ -43,14 +43,18 @@ class ILocatorFilter;
struct FilterEntry struct FilterEntry
{ {
FilterEntry() {} FilterEntry()
: filter(0)
, resolveFileIcon(false)
{}
FilterEntry(ILocatorFilter *fromFilter, const QString &name, const QVariant &data, FilterEntry(ILocatorFilter *fromFilter, const QString &name, const QVariant &data,
const QIcon &icon = QIcon()) const QIcon &icon = QIcon())
: filter(fromFilter) : filter(fromFilter)
, displayName(name) , displayName(name)
, internalData(data) , internalData(data)
, displayIcon(icon) , displayIcon(icon)
, resolveFileIcon(false) , resolveFileIcon(false)
{} {}
bool operator==(const FilterEntry &other) const { bool operator==(const FilterEntry &other) const {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment