Skip to content

Commit

Permalink
Linux (GTK, Portal): Fix unintended wchar_t literals
Browse files Browse the repository at this point in the history
  • Loading branch information
btzy committed Mar 2, 2025
1 parent f8c4c87 commit 89861fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/nfd_gtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void AddFiltersToDialog(GtkFileChooser* chooser,
// count number of file extensions
size_t sep = 1;
for (const nfdnchar_t* p_spec = filterList[index].spec; *p_spec; ++p_spec) {
if (*p_spec == L',') {
if (*p_spec == ',') {
++sep;
}
}
Expand Down Expand Up @@ -225,7 +225,7 @@ Pair_GtkFileFilter_FileExtension* AddFiltersToDialogWithMap(GtkFileChooser* choo
// count number of file extensions
size_t sep = 1;
for (const nfdnchar_t* p_spec = filterList[index].spec; *p_spec; ++p_spec) {
if (*p_spec == L',') {
if (*p_spec == ',') {
++sep;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/nfd_portal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void AppendSingleFilter(DBusMessageIter& base_iter, const nfdnfilteritem_t& filt
// count number of file extensions
size_t sep = 1;
for (const char* p = filter.spec; *p; ++p) {
if (*p == L',') {
if (*p == ',') {
++sep;
}
}
Expand Down Expand Up @@ -353,7 +353,7 @@ bool AppendSingleFilterCheckExtn(DBusMessageIter& base_iter,
// count number of file extensions
size_t sep = 1;
for (const char* p = filter.spec; *p; ++p) {
if (*p == L',') {
if (*p == ',') {
++sep;
}
}
Expand Down

0 comments on commit 89861fb

Please sign in to comment.