Gui: Single arg ctors must be explicit (PR #7369)

This commit is contained in:
berniev
2022-08-15 12:24:41 +10:00
committed by wmayer
parent c429473a4a
commit 3877fc62c3
122 changed files with 237 additions and 237 deletions

View File

@@ -133,7 +133,7 @@ std::vector<int> Tessellator::tessellate() const
class ItemViewSelection::MatchName {
public:
MatchName(const QString& n) : name(n)
explicit MatchName(const QString& n) : name(n)
{}
bool operator() (const App::DocumentObject* obj) {
return name == QLatin1String(obj->getNameInDocument());