diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-18 14:22:33 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-20 10:28:20 +0000 |
commit | 2e77362da08feea3d38991f17e57711acb409520 (patch) | |
tree | 2c7d6aa588b1e5e0d416d295be1b0d968740f616 | |
parent | 4d430753fe1a99141386b304496e164d69b0ba42 (diff) |
Fix some compiler warnings
Change-Id: I8d7feef99b8f59b29efe9caae02aa75cdf5ac597
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/componentcore/theme.cpp | 2 | ||||
-rw-r--r-- | tests/auto/utils/indexedcontainerproxyconstiterator/tst_indexedcontainerproxyconstiterator.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/components/componentcore/theme.cpp b/src/plugins/qmldesigner/components/componentcore/theme.cpp index a2fea95603..6fe7afe760 100644 --- a/src/plugins/qmldesigner/components/componentcore/theme.cpp +++ b/src/plugins/qmldesigner/components/componentcore/theme.cpp @@ -128,7 +128,7 @@ QString Theme::replaceCssColors(const QString &input) void Theme::setupTheme(QQmlEngine *engine) { static const int typeIndex = qmlRegisterSingletonType<Theme>( - "QtQuickDesignerTheme", 1, 0, "Theme", [](QQmlEngine *engine, QJSEngine *) { + "QtQuickDesignerTheme", 1, 0, "Theme", [](QQmlEngine *, QJSEngine *) { return new Theme(Utils::creatorTheme(), nullptr); }); Q_UNUSED(typeIndex) diff --git a/tests/auto/utils/indexedcontainerproxyconstiterator/tst_indexedcontainerproxyconstiterator.cpp b/tests/auto/utils/indexedcontainerproxyconstiterator/tst_indexedcontainerproxyconstiterator.cpp index f0dceb0eb2..b60b5cf114 100644 --- a/tests/auto/utils/indexedcontainerproxyconstiterator/tst_indexedcontainerproxyconstiterator.cpp +++ b/tests/auto/utils/indexedcontainerproxyconstiterator/tst_indexedcontainerproxyconstiterator.cpp @@ -83,7 +83,7 @@ void tst_IndexedContainerProxyConstIterator::testDereference() { StringIterator strIt(strings, 0); QCOMPARE(*strIt, "abc"); - QCOMPARE(strIt->length(), 3); + QCOMPARE(int(strIt->length()), 3); BoolIterator boolIt(bools, 0); QCOMPARE(*boolIt, false); |