mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Refactoring: always use std prefix for shared_ptr, unique_ptr and make_shared
Long time ago it's was used without prefix to make future switch from boost to std version easier. I discusses this with Ivan and decide to drop these using from Global.h now. This change wouldn't break anything because there was already code with prefix for each of three cases.
This commit is contained in:
@ -200,9 +200,9 @@ void Queries::popIfTop(const CQuery &query)
|
||||
popQuery(color, topQuery(color));
|
||||
}
|
||||
|
||||
std::vector<shared_ptr<const CQuery>> Queries::allQueries() const
|
||||
std::vector<std::shared_ptr<const CQuery>> Queries::allQueries() const
|
||||
{
|
||||
std::vector<shared_ptr<const CQuery>> ret;
|
||||
std::vector<std::shared_ptr<const CQuery>> ret;
|
||||
for(auto &playerQueries : queries)
|
||||
for(auto &query : playerQueries.second)
|
||||
ret.push_back(query);
|
||||
@ -210,10 +210,10 @@ std::vector<shared_ptr<const CQuery>> Queries::allQueries() const
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::vector<shared_ptr<CQuery>> Queries::allQueries()
|
||||
std::vector<std::shared_ptr<CQuery>> Queries::allQueries()
|
||||
{
|
||||
//TODO code duplication with const function :(
|
||||
std::vector<shared_ptr<CQuery>> ret;
|
||||
std::vector<std::shared_ptr<CQuery>> ret;
|
||||
for(auto &playerQueries : queries)
|
||||
for(auto &query : playerQueries.second)
|
||||
ret.push_back(query);
|
||||
|
Reference in New Issue
Block a user