Commit 409e81f9 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Pass enum arg by value

parent 5e05cf4f
......@@ -41,7 +41,7 @@ QVariant SourceItem::data(int role) const
}
}
Source::Source(const SourceType& aType, const QString& anIcon, const QString& aName, const QPair<QString, QString>& aUrl)
Source::Source(SourceType aType, const QString& anIcon, const QString& aName, const QPair<QString, QString>& aUrl)
: type(aType), name(aName), icon(anIcon)
{
m_urls[aUrl.first] = aUrl.second;
......
......@@ -34,7 +34,7 @@ struct Source
};
Source() {}
Source(const SourceType & aType, const QString& anIcon, const QString& aName, const QPair< QString, QString >& aUrl);
Source(SourceType aType, const QString& anIcon, const QString& aName, const QPair< QString, QString >& aUrl);
SourceType type = Project;
QString name;
......
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