From 0c8c08b81b63c269a67666cec4648936ab4246b1 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 8 Aug 2019 17:40:57 +0200 Subject: [PATCH] Designer: Fix implicit cast warnings Change-Id: I33b2c214de9fc517076ef12f9aec32a18adec36a Reviewed-by: hjk --- src/plugins/designer/codemodelhelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/designer/codemodelhelpers.cpp b/src/plugins/designer/codemodelhelpers.cpp index de7eb582ac6..5f3422e4121 100644 --- a/src/plugins/designer/codemodelhelpers.cpp +++ b/src/plugins/designer/codemodelhelpers.cpp @@ -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(id->size()) == m_length) if (!qstrncmp(m_name, id->chars(), m_length)) m_matches.push_back(f); return true;