summaryrefslogtreecommitdiff
path: root/src/c_fl_filename.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
commitdbf6f4db24aee7315b2782a87e127367887e2036 (patch)
tree91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_filename.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_filename.cpp')
-rw-r--r--src/c_fl_filename.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c_fl_filename.cpp b/src/c_fl_filename.cpp
index 39af3d1..300f4ff 100644
--- a/src/c_fl_filename.cpp
+++ b/src/c_fl_filename.cpp
@@ -17,12 +17,12 @@ const int fl_path_max = FL_PATH_MAX;
void free_filename_file_list(void * l, int n) {
- struct dirent ** p = reinterpret_cast<struct dirent **>(l);
+ struct dirent ** p = static_cast<struct dirent **>(l);
fl_filename_free_list(&p, n);
}
const char * filename_dname(void * l, int n) {
- return (reinterpret_cast<struct dirent **>(l)[n])->d_name;
+ return (static_cast<struct dirent **>(l)[n])->d_name;
}
@@ -49,7 +49,7 @@ int filename_isdir(const char * name) {
}
int filename_list(const char * d, void * l, void * f) {
- return fl_filename_list(d, reinterpret_cast<struct dirent ***>(l),
+ return fl_filename_list(d, static_cast<struct dirent ***>(l),
reinterpret_cast<Fl_File_Sort_F*>(f));
}