mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-24 10:17:59 +02:00
Fix compiler warnings by not std::move()ing where redundant
This commit is contained in:
parent
93b28c02df
commit
8f2f9737d3
@ -242,5 +242,5 @@ String icinga::PackObject(const Value& value)
|
|||||||
std::string builder;
|
std::string builder;
|
||||||
PackAny(value, builder);
|
PackAny(value, builder);
|
||||||
|
|
||||||
return std::move(builder);
|
return builder;
|
||||||
}
|
}
|
||||||
|
@ -280,7 +280,7 @@ std::unique_ptr<Expression> ConfigCompiler::Compile()
|
|||||||
|
|
||||||
std::unique_ptr<DictExpression> expr{new DictExpression(std::move(dlist))};
|
std::unique_ptr<DictExpression> expr{new DictExpression(std::move(dlist))};
|
||||||
expr->MakeInline();
|
expr->MakeInline();
|
||||||
return std::move(expr);
|
return expr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define scanner (context->GetScanner())
|
#define scanner (context->GetScanner())
|
||||||
|
@ -146,7 +146,7 @@ std::unique_ptr<Expression> ConfigCompiler::HandleInclude(const String& relative
|
|||||||
|
|
||||||
std::unique_ptr<DictExpression> expr{new DictExpression(std::move(expressions))};
|
std::unique_ptr<DictExpression> expr{new DictExpression(std::move(expressions))};
|
||||||
expr->MakeInline();
|
expr->MakeInline();
|
||||||
return std::move(expr);
|
return expr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -174,7 +174,7 @@ std::unique_ptr<Expression> ConfigCompiler::HandleIncludeRecursive(const String&
|
|||||||
|
|
||||||
std::unique_ptr<DictExpression> dict{new DictExpression(std::move(expressions))};
|
std::unique_ptr<DictExpression> dict{new DictExpression(std::move(expressions))};
|
||||||
dict->MakeInline();
|
dict->MakeInline();
|
||||||
return std::move(dict);
|
return dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigCompiler::HandleIncludeZone(const String& relativeBase, const String& tag, const String& path, const String& pattern, const String& package, std::vector<std::unique_ptr<Expression> >& expressions)
|
void ConfigCompiler::HandleIncludeZone(const String& relativeBase, const String& tag, const String& path, const String& pattern, const String& package, std::vector<std::unique_ptr<Expression> >& expressions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user