diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-08-08 17:40:57 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-08-09 12:42:37 +0000 |
commit | 0c8c08b81b63c269a67666cec4648936ab4246b1 (patch) | |
tree | c46011705c913518844257b55d9ac6cc6ae8c3dc /src/plugins/designer | |
parent | 6dcdacb10eff22c5ad47745416439c5de993f29a (diff) | |
download | qt-creator-0c8c08b81b63c269a67666cec4648936ab4246b1.tar.gz |
Designer: Fix implicit cast warnings
Change-Id: I33b2c214de9fc517076ef12f9aec32a18adec36a
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r-- | src/plugins/designer/codemodelhelpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/designer/codemodelhelpers.cpp b/src/plugins/designer/codemodelhelpers.cpp index de7eb582ac..5f3422e412 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<uint>(id->size()) == m_length) if (!qstrncmp(m_name, id->chars(), m_length)) m_matches.push_back(f); return true; |