mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 15:56:10 +08:00
Fix compiler warnings (Windows only)
src/Fl_Native_File_Chooser_WIN32.cxx:331:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
331 | while ( s=strchr(s,'\\') ) *s = '/';
| ~^~~~~~~~~~~~~~~
src/Fl_Native_File_Chooser_WIN32.cxx:336:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
336 | while ( s=strchr(s,'/') ) *s = '\\';
| ~^~~~~~~~~~~~~~
This commit is contained in:
@@ -328,12 +328,12 @@ void Fl_WinAPI_Native_File_Chooser_Driver::ClearBINF() {
|
||||
|
||||
// CONVERT WINDOWS BACKSLASHES TO UNIX FRONTSLASHES
|
||||
void Fl_WinAPI_Native_File_Chooser_Driver::Win2Unix(char *s) {
|
||||
while ( s=strchr(s,'\\') ) *s = '/';
|
||||
while ( (s=strchr(s,'\\')) ) *s = '/';
|
||||
}
|
||||
|
||||
// CONVERT UNIX FRONTSLASHES TO WINDOWS BACKSLASHES
|
||||
void Fl_WinAPI_Native_File_Chooser_Driver::Unix2Win(char *s) {
|
||||
while ( s=strchr(s,'/') ) *s = '\\';
|
||||
while ( (s=strchr(s,'/')) ) *s = '\\';
|
||||
}
|
||||
|
||||
// SEE IF PATH IS FRONT SLASH OR BACKSLASH STYLE
|
||||
|
||||
Reference in New Issue
Block a user