Skip to content

Commit 3374406

Browse files
committed
Linux (GTK, Portal): Fix unintended wchar_t literals
1 parent 7dffc10 commit 3374406

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/nfd_gtk.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void AddFiltersToDialog(GtkFileChooser* chooser,
9292
// count number of file extensions
9393
size_t sep = 1;
9494
for (const nfdnchar_t* p_spec = filterList[index].spec; *p_spec; ++p_spec) {
95-
if (*p_spec == L',') {
95+
if (*p_spec == ',') {
9696
++sep;
9797
}
9898
}
@@ -192,7 +192,7 @@ Pair_GtkFileFilter_FileExtension* AddFiltersToDialogWithMap(GtkFileChooser* choo
192192
// count number of file extensions
193193
size_t sep = 1;
194194
for (const nfdnchar_t* p_spec = filterList[index].spec; *p_spec; ++p_spec) {
195-
if (*p_spec == L',') {
195+
if (*p_spec == ',') {
196196
++sep;
197197
}
198198
}

src/nfd_portal.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void AppendSingleFilter(DBusMessageIter& base_iter, const nfdnfilteritem_t& filt
278278
// count number of file extensions
279279
size_t sep = 1;
280280
for (const char* p = filter.spec; *p; ++p) {
281-
if (*p == L',') {
281+
if (*p == ',') {
282282
++sep;
283283
}
284284
}
@@ -346,7 +346,7 @@ bool AppendSingleFilterCheckExtn(DBusMessageIter& base_iter,
346346
// count number of file extensions
347347
size_t sep = 1;
348348
for (const char* p = filter.spec; *p; ++p) {
349-
if (*p == L',') {
349+
if (*p == ',') {
350350
++sep;
351351
}
352352
}

0 commit comments

Comments
 (0)