Skip to content
Browse files

fix local variable will be copied despite being returned by name

this is an error with clang 7
note: call 'std::move' explicitly to avoid copying
  • Loading branch information
3nids committed Oct 10, 2018
1 parent f6cf944 commit 698cae6c186dfdd986c2073ce79834f4edfb4baa
Showing with 1 addition and 1 deletion.
  1. +1 −1 external/o2/src/o2replyserver.cpp
@@ -105,7 +105,7 @@ QMap<QString, QString> O2ReplyServer::parseQueryParams(QByteArray *data) {
QString value = QUrl::fromPercentEncoding(QByteArray().append(tokenPair.second.trimmed().toLatin1()));
queryParams.insert(key, value);
return queryParams;
return std::move( queryParams );

void O2ReplyServer::closeServer(QTcpSocket *socket, bool hasparameters)

0 comments on commit 698cae6

Please sign in to comment.
You can’t perform that action at this time.