Skip to content

Commit

Permalink
fix Emscripten build
Browse files Browse the repository at this point in the history
  • Loading branch information
midzer committed Apr 12, 2024
1 parent 6f76229 commit ea13471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3rd_party/imgui-filebrowser/imfilebrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void ImGui::FileBrowser::Display()
#endif

int secIdx = 0, newPwdLastSecIdx = -1;
for(auto &sec : pwd_)
for(const auto &sec : pwd_)
{
#ifdef _WIN32
if(secIdx == 1)
Expand All @@ -193,7 +193,7 @@ void ImGui::FileBrowser::Display()
{
int i = 0;
std::filesystem::path newPwd;
for(auto &sec : pwd_)
for(const auto &sec : pwd_)
{
if(i++ > newPwdLastSecIdx)
break;
Expand Down

0 comments on commit ea13471

Please sign in to comment.