Browse Source

UI: Fix preventing copy elision of a temporary string object

PatTheMav 2 years ago
parent
commit
9f0a2547ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UI/update/shared-update.cpp

+ 1 - 1
UI/update/shared-update.cpp

@@ -232,7 +232,7 @@ bool FetchAndVerifyFile(const char *name, const char *file, const char *url,
 						    BLAKE2_HASH_LENGTH);
 
 		QString header = "If-None-Match: " + hash.toHex();
-		headers.push_back(std::move(header.toStdString()));
+		headers.push_back(header.toStdString());
 	}
 
 	/* ----------------------------------- *