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;
struct FilterEntry
{
FilterEntry() {}
FilterEntry()
: filter(0)
, resolveFileIcon(false)
{}
FilterEntry(ILocatorFilter *fromFilter, const QString &name, const QVariant &data,
const QIcon &icon = QIcon())
: filter(fromFilter)
, displayName(name)
, internalData(data)
, displayIcon(icon)
, resolveFileIcon(false)
: filter(fromFilter)
, displayName(name)
, internalData(data)
, displayIcon(icon)
, resolveFileIcon(false)
{}
bool operator==(const FilterEntry &other) const {
......
Markdown is supported
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