Designer: Fix implicit cast warnings

Change-Id: I33b2c214de9fc517076ef12f9aec32a18adec36a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2019-08-08 17:40:57 +02:00
parent 6dcdacb10e
commit 0c8c08b81b

View File

@@ -67,7 +67,7 @@ public:
bool visit(CPlusPlus::Function * f) override;
private:
const int m_length;
const uint m_length;
const char *m_name;
FunctionList m_matches;
@@ -92,7 +92,7 @@ bool SearchFunction::visit(CPlusPlus::Function * f)
{
if (const CPlusPlus::Name *name = f->name())
if (const CPlusPlus::Identifier *id = name->identifier())
if (id->size() == m_length)
if (static_cast<uint>(id->size()) == m_length)
if (!qstrncmp(m_name, id->chars(), m_length))
m_matches.push_back(f);
return true;