diff options
author | Cole Faust <colecfaust@gmail.com> | 2022-11-17 21:51:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 21:51:34 -0800 |
commit | a6adf085a06ef61b0417b140fd24cbc5709b6707 (patch) | |
tree | f142eacde772f9dc025d0c4bbd01de74f45618e1 | |
parent | a8b2c1d558771c26b78f17199e9bc1abce94cec4 (diff) | |
parent | ce47f101600397778b45d6f33543201540f3d48d (diff) | |
download | kati-a6adf085a06ef61b0417b140fd24cbc5709b6707.tar.gz |
Merge pull request #251 from kongy/master
Fix unqualified-std-cast-call compiler warning
-rw-r--r-- | src/func.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/func.cc b/src/func.cc index bd8d78d..89f9e16 100644 --- a/src/func.cc +++ b/src/func.cc @@ -614,9 +614,8 @@ void CallFunc(const vector<Value*>& args, Evaluator* ev, string* s) { } vector<unique_ptr<SimpleVar>> av; for (size_t i = 1; i < args.size(); i++) { - unique_ptr<SimpleVar> s( - new SimpleVar(args[i]->Eval(ev), VarOrigin::AUTOMATIC, nullptr, Loc())); - av.push_back(move(s)); + av.emplace_back(std::make_unique<SimpleVar>( + args[i]->Eval(ev), VarOrigin::AUTOMATIC, nullptr, Loc())); } vector<unique_ptr<ScopedGlobalVar>> sv; for (size_t i = 1;; i++) { |