@@ -1822,10 +1822,8 @@ namespace igfd
1822
1822
if (fullStr[p] == ' {' ) // {
1823
1823
{
1824
1824
infos.filter = fullStr.substr (lp, p - lp);
1825
-
1826
1825
p++;
1827
-
1828
- size_t lp = fullStr.find (' }' , p);
1826
+ lp = fullStr.find (' }' , p);
1829
1827
if (lp != nan )
1830
1828
{
1831
1829
std::string fs = fullStr.substr (p, lp - p);
@@ -1835,7 +1833,6 @@ namespace igfd
1835
1833
infos.collectionfilters .emplace (a);
1836
1834
}
1837
1835
}
1838
-
1839
1836
p = lp + 1 ;
1840
1837
}
1841
1838
else // ,
@@ -1905,8 +1902,8 @@ namespace igfd
1905
1902
std::string ImGuiFileDialog::OptimizeFilenameForSearchOperations (std::string vFileName)
1906
1903
{
1907
1904
// convert to lower case
1908
- for (auto & c : vFileName)
1909
- c = std::tolower (c);
1905
+ for (char & c : vFileName)
1906
+ c = ( char ) std::tolower (c);
1910
1907
return vFileName;
1911
1908
}
1912
1909
@@ -1945,11 +1942,11 @@ namespace igfd
1945
1942
// //////////////////////////////////////////////////////////////////////////////////////////////
1946
1943
1947
1944
static size_t locateFileByInputChar_lastFileIdx = 0 ;
1948
- static char locateFileByInputChar_lastChar = 0 ;
1945
+ static ImWchar locateFileByInputChar_lastChar = 0 ;
1949
1946
static int locateFileByInputChar_InputQueueCharactersSize = 0 ;
1950
1947
static bool locateFileByInputChar_lastFound = false ;
1951
1948
1952
- bool ImGuiFileDialog::LocateItem_Loop (char vC)
1949
+ bool ImGuiFileDialog::LocateItem_Loop (ImWchar vC)
1953
1950
{
1954
1951
bool found = false ;
1955
1952
@@ -1997,7 +1994,7 @@ namespace igfd
1997
1994
// point by char
1998
1995
if (!ImGui::GetIO ().InputQueueCharacters .empty ())
1999
1996
{
2000
- char c = ImGui::GetIO ().InputQueueCharacters .back ();
1997
+ ImWchar c = ImGui::GetIO ().InputQueueCharacters .back ();
2001
1998
if (locateFileByInputChar_InputQueueCharactersSize !=
2002
1999
ImGui::GetIO ().InputQueueCharacters .size ())
2003
2000
{
@@ -2150,7 +2147,7 @@ namespace igfd
2150
2147
2151
2148
void ImGuiFileDialog::SetFlashingAttenuationInSeconds (float vAttenValue)
2152
2149
{
2153
- m_FlashAlphaAttenInSecs = 1 .0f / max (vAttenValue,0 .01f );
2150
+ m_FlashAlphaAttenInSecs = 1 .0f / ImMax (vAttenValue,0 .01f );
2154
2151
}
2155
2152
#endif
2156
2153
}
0 commit comments