Fixed return copies from functions and const ref params

This commit is contained in:
Herman Semenov committed 2024-04-02 18:37:00 +03:00
1 parent 8aac45fec0
commit 17ecee1715
15 files changed
+21 -21

No files matched your search

+2 -2
View File
@@ -951,7 +951,7 @@ bool GameBrowser::IsCurrentPathPinned() {
return std::find(paths.begin(), paths.end(), File::ResolvePath(path_.GetPath().ToString())) != paths.end();
}
const std::vector<Path> GameBrowser::GetPinnedPaths() {
std::vector<Path> GameBrowser::GetPinnedPaths() const {
#ifndef _WIN32
static const std::string sepChars = "/";
#else
@@ -979,7 +979,7 @@ const std::vector<Path> GameBrowser::GetPinnedPaths() {
return results;
}
const std::string GameBrowser::GetBaseName(const std::string &path) {
std::string GameBrowser::GetBaseName(const std::string &path) const {
#ifndef _WIN32
static const std::string sepChars = "/";
#else