Skip to content

Commit 6fd860e

Browse files
performance: move std::string instead of copying it
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent cd2383b commit 6fd860e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/source/os_interface/windows/os_library_win.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2024 Intel Corporation
2+
* Copyright (C) 2019-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -186,7 +186,7 @@ bool getLoadedLibVersion(const std::string &libName, const std::string &regexVer
186186

187187
auto sdata = truncateWstringToString(data);
188188
if (std::regex_search(sdata, versionPattern)) {
189-
outVersion = sdata;
189+
outVersion = std::move(sdata);
190190
return true;
191191
}
192192
}

0 commit comments

Comments
 (0)