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:
Zachary Wasserman 2016-04-15 13:15:23 -07:00 committed by Teddy Reed
parent 2376fedb73
commit 9370d9e1f5
4 changed files with 5 additions and 5 deletions

View File

@ -279,7 +279,7 @@ QueryData genApps(QueryContext& context) {
genApplication(tree, path, results);
}
return std::move(results);
return results;
}
QueryData genAppSchemes(QueryContext& context) {

View File

@ -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) {

View File

@ -254,7 +254,7 @@ QueryData genOSXPreferences(QueryContext& context) {
genOSXDefaultPreferences(context, results);
}
return std::move(results);
return results;
}
}
}

View File

@ -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;
}
}
}