Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/analyzerinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ std::string AnalyzerInformation::getAnalyzerInfoFile(const std::string &buildDir
filename = sourcefile;
else
filename = sourcefile.substr(pos + 1);
return Path::join(buildDir, filename) + ".analyzerinfo";
return Path::join(buildDir, std::move(filename)) + ".analyzerinfo";
}

bool AnalyzerInformation::analyzeFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg, int fileIndex, std::size_t hash, std::list<ErrorMessage> &errors)
Expand Down
2 changes: 1 addition & 1 deletion lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4442,7 +4442,7 @@ static std::vector<Union> parseUnions(const SymbolDatabase &symbolDatabase,
for (const Variable &var : scope.varlist) {
u.members.push_back(parseUnionMember(var, settings));
}
unions.push_back(u);
unions.push_back(std::move(u));
}

return unions;
Expand Down
2 changes: 1 addition & 1 deletion lib/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ bool Platform::loadFromFile(const std::vector<std::string>& paths, const std::st
std::vector<std::string> filenames;
if (is_abs_path)
{
filenames.push_back(fullfilename);
filenames.push_back(std::move(fullfilename));
}
else {
// TODO: drop duplicated paths
Expand Down