Skip to content
Snippets Groups Projects
Commit c5cd6719 authored by mbellgardt's avatar mbellgardt
Browse files

Verify if shared pointer solution works

parent e12dca8a
No related branches found
No related tags found
2 merge requests!16Develop,!9Fix unique pointer problem properly
Pipeline #167333 failed
......@@ -6,7 +6,7 @@ LogFileStream* LogFileManager::GetLogFileStream(FString FilePath, FString FileNa
if (Streams.Contains(Full_Path))
return Streams[Full_Path].Get();
else
Streams.Add(Full_Path, MakeUnique<LogFileStream>(FilePath, FileName));
Streams.Add(Full_Path, MakeShared<LogFileStream>(FilePath, FileName));
return Streams[Full_Path].Get();
}
......
......@@ -13,5 +13,5 @@ private:
virtual ~LogFileManager();
private:
TMap<FString, TUniquePtr<LogFileStream>> Streams;
TMap<FString, TSharedPtr<LogFileStream>> Streams;
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment