editor: fix string ref passing through lambda when opening with file picker
This commit is contained in:
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user