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

Properly fix the problem for good there is no way the pipeline will fail.

parent c5cd6719
No related branches found
No related tags found
2 merge requests!16Develop,!9Fix unique pointer problem properly
Pipeline #167335 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, MakeShared<LogFileStream>(FilePath, FileName));
Streams.Add(Full_Path, MakeUnique<LogFileStream>(FilePath, FileName));
return Streams[Full_Path].Get();
}
......
......@@ -13,5 +13,5 @@ private:
virtual ~LogFileManager();
private:
TMap<FString, TSharedPtr<LogFileStream>> Streams;
TMap<FString, TUniquePtr<LogFileStream>> Streams;
};
\ No newline at end of file
......@@ -7,7 +7,7 @@
#include "Cluster/IDisplayClusterClusterManager.h"
#include "Misc/CommandLine.h"
LogFileManager UniversalLoggingImpl::Log_File_Manager = LogFileManager();
LogFileManager UniversalLoggingImpl::Log_File_Manager{};
void UniversalLoggingImpl::StartupModule()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment