From 2b3d6461e3178e8f9887c60e57409ee1912d92ce Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 12 Mar 2020 15:43:10 -0700 Subject: [PATCH] remove unused ctype.h header None of the functions in these files come from ctype.h Also changed one instance of isdigit to the C++ variant. Signed-off-by: Rosen Penev --- src/lib/icu/CaseFold.cxx | 1 - src/lib/icu/Collate.cxx | 1 - src/output/plugins/OSXOutputPlugin.cxx | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/icu/CaseFold.cxx b/src/lib/icu/CaseFold.cxx index 26ae6cba5..d41240c30 100644 --- a/src/lib/icu/CaseFold.cxx +++ b/src/lib/icu/CaseFold.cxx @@ -32,7 +32,6 @@ #include #else #include -#include #endif #ifdef _WIN32 diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx index d3cf68cb1..ee1bb8f88 100644 --- a/src/lib/icu/Collate.cxx +++ b/src/lib/icu/Collate.cxx @@ -29,7 +29,6 @@ #include #else #include -#include #endif #ifdef _WIN32 diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index 90946bb9f..312d16965 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -266,7 +266,7 @@ osx_output_parse_channel_map(const char *device_name, } if (want_number && - (isdigit(*channel_map_str) || *channel_map_str == '-') + (std::isdigit(*channel_map_str) || *channel_map_str == '-') ) { channel_map[inserted_channels] = strtol(channel_map_str, &endptr, 10); if (channel_map[inserted_channels] < -1)