Fix clang 10 warnings about loop assignments
Fix clang 10 warnings about loop assignments

tests/auto/language/tst_language.cpp:539: warning: loop variable 'p' has type
'const qbs::Internal::ResolvedProductConstPtr &'
(aka 'const shared_ptr<const qbs::Internal::ResolvedProduct> &') but is
initialized with type 'const std::shared_ptr<qbs::Internal::ResolvedProduct>'
resulting in a copy [-Wrange-loop-construct]
        for (const ResolvedProductConstPtr &p : mainProduct->dependencies) {
                                            ^

Change-Id: Ie576a245d7aad5d4dcfac32f5394b18f05e862d5
Reviewed-by: Joerg Bornemann <47777b9406dbddd02a3fdca8341789a013805a11@qt.io>

qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs