We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f47c0a commit 1e6a844Copy full SHA for 1e6a844
base/vks/vku.hpp
@@ -39,7 +39,7 @@ std::string format(const char* fmt, Args... args) {
39
int n = snprintf(nullptr, 0, fmt, args...);
40
std::string result(n, '\0');
41
snprintf(&*result.begin(), n + 1, fmt, args...);
42
- return std::move(result);
+ return result;
43
}
44
45
/// Utility function for finding memory types for uniforms and images.
@@ -88,7 +88,7 @@ inline std::vector<uint8_t> loadFile(const std::string& filename) {
88
bytes.resize(size);
89
is.read((char*)bytes.data(), size);
90
91
- return std::move(bytes);
+ return bytes;
92
93
94
/// Description of blocks for compressed formats.
0 commit comments