diff options
Diffstat (limited to 'tests/auto/concurrent/qtconcurrentfiltermapgenerated/generation_helpers.h')
-rw-r--r-- | tests/auto/concurrent/qtconcurrentfiltermapgenerated/generation_helpers.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/concurrent/qtconcurrentfiltermapgenerated/generation_helpers.h b/tests/auto/concurrent/qtconcurrentfiltermapgenerated/generation_helpers.h index 4ce901e34b..aaa0d85002 100644 --- a/tests/auto/concurrent/qtconcurrentfiltermapgenerated/generation_helpers.h +++ b/tests/auto/concurrent/qtconcurrentfiltermapgenerated/generation_helpers.h @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef QTBASE_GENERATION_HELPERS_H #define QTBASE_GENERATION_HELPERS_H @@ -131,10 +131,7 @@ public: bool operator()(const T &el) { - if (!movedFrom) - return el.isOdd(); - else - return -1; + return movedFrom || el.isOdd(); } }; |