diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index 91ff2478e..8ee5068f1 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -3704,7 +3704,7 @@ void EditorComponent::RegisterRecentlyUsed(const std::string& filename) contentBrowserWnd.RefreshContent(); } -void EditorComponent::Open(const std::string& filename) +void EditorComponent::Open(std::string filename) { std::string extension = wi::helper::toUpper(wi::helper::GetExtensionFromFileName(filename)); diff --git a/Editor/Editor.h b/Editor/Editor.h index 7768cf533..e3f2b9571 100644 --- a/Editor/Editor.h +++ b/Editor/Editor.h @@ -145,7 +145,7 @@ public: size_t maxRecentFolders = 5; void RegisterRecentlyUsed(const std::string& filename); - void Open(const std::string& filename); + void Open(std::string filename); void Save(const std::string& filename); void SaveAs(); bool deleting = false;