mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
Fix pessimizing move warnings (#2040)
Fixes warnings generated by Clang when `std::move` is used in a `return` statement. Verified by `make clean`, saw no warnings, `make test` passes.
This commit is contained in:
parent
2376fedb73
commit
9370d9e1f5
@ -279,7 +279,7 @@ QueryData genApps(QueryContext& context) {
|
||||
genApplication(tree, path, results);
|
||||
}
|
||||
|
||||
return std::move(results);
|
||||
return results;
|
||||
}
|
||||
|
||||
QueryData genAppSchemes(QueryContext& context) {
|
||||
|
@ -130,7 +130,7 @@ QueryData genLaunchd(QueryContext& context) {
|
||||
genLaunchdItem(tree, path, results);
|
||||
}
|
||||
|
||||
return std::move(results);
|
||||
return results;
|
||||
}
|
||||
|
||||
void genLaunchdOverride(const fs::path& path, QueryData& results) {
|
||||
|
@ -254,7 +254,7 @@ QueryData genOSXPreferences(QueryContext& context) {
|
||||
genOSXDefaultPreferences(context, results);
|
||||
}
|
||||
|
||||
return std::move(results);
|
||||
return results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ QueryData genXProtectEntries(QueryContext& context) {
|
||||
}
|
||||
}
|
||||
|
||||
return std::move(results);
|
||||
return results;
|
||||
}
|
||||
|
||||
QueryData genXProtectMeta(QueryContext& context) {
|
||||
@ -214,7 +214,7 @@ QueryData genXProtectMeta(QueryContext& context) {
|
||||
}
|
||||
}
|
||||
|
||||
return std::move(results);
|
||||
return results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user