shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
This commit is contained in:
@@ -4,27 +4,27 @@ using namespace std;
|
||||
class ConsoleSaveFile;
|
||||
#include "SavedData.h"
|
||||
|
||||
class SavedDataStorage
|
||||
class SavedDataStorage
|
||||
{
|
||||
private:
|
||||
LevelStorage *levelStorage;
|
||||
|
||||
typedef unordered_map<wstring, shared_ptr<SavedData> > cacheMapType;
|
||||
typedef unordered_map<wstring, std::shared_ptr<SavedData> > cacheMapType;
|
||||
cacheMapType cache;
|
||||
|
||||
vector<shared_ptr<SavedData> > savedDatas;
|
||||
vector<std::shared_ptr<SavedData> > savedDatas;
|
||||
|
||||
typedef unordered_map<wstring, short> uaiMapType;
|
||||
uaiMapType usedAuxIds;
|
||||
|
||||
public:
|
||||
SavedDataStorage(LevelStorage *);
|
||||
shared_ptr<SavedData> get(const type_info& clazz, const wstring& id);
|
||||
void set(const wstring& id, shared_ptr<SavedData> data);
|
||||
std::shared_ptr<SavedData> get(const type_info& clazz, const wstring& id);
|
||||
void set(const wstring& id, std::shared_ptr<SavedData> data);
|
||||
void save();
|
||||
|
||||
private:
|
||||
void save(shared_ptr<SavedData> data);
|
||||
void save(std::shared_ptr<SavedData> data);
|
||||
void loadAuxValues();
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user