fix warnings

This commit is contained in:
Yunfan Li
2023-05-24 19:48:01 +08:00
parent 429dc03100
commit 637f1dd909
4 changed files with 6 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ class NamedObjectFactory
for (typename std::map<std::string, ActionCreator>::iterator it = creators.begin(); it != creators.end(); it++)
keys.insert(it->first);
return std::move(keys);
return keys;
}
};
@@ -142,7 +142,7 @@ class NamedObjectContext : public NamedObjectFactory<T>
for (typename std::map<std::string, T*>::iterator it = created.begin(); it != created.end(); it++)
keys.insert(it->first);
return std::move(keys);
return keys;
}
protected:
@@ -214,7 +214,7 @@ class NamedObjectContextList
return supported;
}
return std::move(std::set<std::string>());
return std::set<std::string>();
}
std::set<std::string> supports()

View File

@@ -13,7 +13,7 @@ class Unit;
class RtiTargetValue : public TargetValue
{
public:
RtiTargetValue(PlayerbotAI* botAI, std::string const type = "rti", std::string const name = "rti target") : type(type), TargetValue(botAI, name) { }
RtiTargetValue(PlayerbotAI* botAI, std::string const type = "rti", std::string const name = "rti target") : TargetValue(botAI, name), type(type) { }
static int32 GetRtiIndex(std::string const rti);
Unit* Calculate() override;