From 7dc83b5472a20008bdf42e4ba2f170df786d1384 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 16 Feb 2023 22:59:31 +0100 Subject: [PATCH] Fix compilation warning --- Source/Engine/Content/JsonAsset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Content/JsonAsset.cpp b/Source/Engine/Content/JsonAsset.cpp index 2e1dc2f0e..1f0e914f2 100644 --- a/Source/Engine/Content/JsonAsset.cpp +++ b/Source/Engine/Content/JsonAsset.cpp @@ -184,7 +184,7 @@ bool JsonAssetBase::Save(const StringView& path) writer.EndObject(); // Save json to file - if (File::WriteAllBytes(path.HasChars() ? path : GetPath(), (byte*)buffer.GetString(), (int32)buffer.GetSize())) + if (File::WriteAllBytes(path.HasChars() ? path : StringView(GetPath()), (byte*)buffer.GetString(), (int32)buffer.GetSize())) { LOG(Error, "Cannot save \'{0}\'", ToString()); return true;