From 3b3a1d4044a2f29998b7c5e1250a0a2d722b0883 Mon Sep 17 00:00:00 2001 From: gallickgunner Date: Fri, 13 Mar 2020 20:19:03 +0500 Subject: [PATCH] mac syntax error fix. --- FileBrowser/ImGuiFileBrowser.cpp | 2 +- FileBrowser/ImGuiFileBrowser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FileBrowser/ImGuiFileBrowser.cpp b/FileBrowser/ImGuiFileBrowser.cpp index 17cd89e..b1bcc03 100644 --- a/FileBrowser/ImGuiFileBrowser.cpp +++ b/FileBrowser/ImGuiFileBrowser.cpp @@ -424,7 +424,7 @@ namespace imgui_addons ImGui::SetCursorPosY(pw_content_sz.y - frame_height_spacing * 2.0f); //Render Input Text Bar label - ImGui::Text(label.c_str()); + ImGui::Text("%s", label.c_str()); ImGui::SameLine(); //Render Input Text Bar diff --git a/FileBrowser/ImGuiFileBrowser.h b/FileBrowser/ImGuiFileBrowser.h index f557724..83ccb52 100644 --- a/FileBrowser/ImGuiFileBrowser.h +++ b/FileBrowser/ImGuiFileBrowser.h @@ -114,7 +114,7 @@ namespace imgui_addons std::string valid_types; std::vector filtered_dirs; // Note: We don't need to call delete. It's just for storing filtered items from subdirs and subfiles so we don't use PassFilter every frame. std::vector filtered_files; - std::vector> inputcb_filter_files; + std::vector< std::reference_wrapper > inputcb_filter_files; }; }