Skip to content

Commit 2d8e38b

Browse files
authored
Merge pull request #29 from maxsupermanhd/master
Fix initialization order warning.
2 parents f0efef3 + 0e5d496 commit 2d8e38b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ImGuiFileDialog/ImGuiFileDialog.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ this File Dialog is build on top of DearImGui
3030
(On windows, need te lib Dirent : https://github.com/tronkko/dirent, use the branch 1.23 for avoid any issues)
3131
Complete readme here : https://github.com/aiekick/ImGuiFileDialog/blob/master/README.md)
3232
33-
this filedialog was created principally for have custom pane with widgets.
33+
this filedialog was created principally for have custom pane with widgets.
3434
it was not possible with native filedialog
3535
3636
The possibilities are :
@@ -57,11 +57,11 @@ Use the Namespace igfd (for avoid conflict with variables, struct and class name
5757
you can display only one dialog at a time, this class is a simgleton and called like that :
5858
igfd::ImGuiFileDialog::Instance()->method_of_your_choice()
5959
60-
its a bit long but you can use a defime if you want like :
60+
its a bit long but you can use a defime if you want like :
6161
#define fdi igfd::ImGuiFileDialog::Instance()
6262
for call any func like fdi->method_of_your_choice()
6363
64-
the filter syntax is a list of filter ext with the '.' :
64+
the filter syntax is a list of filter ext with the '.' :
6565
syntax : ".filter1, .filter2, .filter3"
6666
ex : ".cpp,.h,.hpp"
6767
@@ -120,8 +120,8 @@ namespace igfd
120120
// old FilterInfosStruct
121121
struct FileExtentionInfosStruct
122122
{
123-
std::string icon;
124123
ImVec4 color = ImVec4(0, 0, 0, 0);
124+
std::string icon;
125125
FileExtentionInfosStruct() : color(0, 0, 0, 0) { }
126126
FileExtentionInfosStruct(const ImVec4& vColor, const std::string& vIcon = std::string()) : color(vColor), icon(vIcon){}
127127
};
@@ -139,8 +139,8 @@ namespace igfd
139139

140140
bool empty()
141141
{
142-
return
143-
filter.empty() &&
142+
return
143+
filter.empty() &&
144144
collectionfilters.empty();
145145
}
146146

@@ -217,7 +217,7 @@ namespace igfd
217217
UserDatas dlg_userDatas{};
218218
size_t dlg_countSelectionMax = 1; // 0 for infinite
219219
bool dlg_modal = false;
220-
220+
221221
private:
222222
std::string m_HeaderFileName;
223223
std::string m_HeaderFileSize;

0 commit comments

Comments
 (0)