editor: fix string ref passing through lambda when opening with file picker

This commit is contained in:
Turánszki János
2024-04-30 15:04:25 +02:00
parent 2f495992a7
commit aac227f3ef
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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;