Silence compiler warning
clang warns that: local variable 'big' will be copied despite being returned by name [-Wreturn-std-move] So force the intended move using std::move. Change-Id: If5ff557c1b577789e6659783d8106295fafb3485 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
0fe44fb8b9
commit
e7cd245628
@ -1266,7 +1266,7 @@ static QByteArray decNext(QByteArray &&big)
|
||||
while (big.at(i) == '9')
|
||||
big[i--] = '0';
|
||||
big[i] += 1;
|
||||
return big;
|
||||
return std::move(big);
|
||||
}
|
||||
|
||||
void tst_QByteArrayApiSymmetry::toLongLong_data() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user