summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-12 15:43:10 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 15:43:50 -0700
commit2b3d6461e3178e8f9887c60e57409ee1912d92ce (patch)
tree6d5f6975e9bf1604380043ae96b0e5b1d549c2f4
parentab9f5d2067e1f8f22cb5009015ec059f4a1a7431 (diff)
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 <rosenp@gmail.com>
-rw-r--r--src/lib/icu/CaseFold.cxx1
-rw-r--r--src/lib/icu/Collate.cxx1
-rw-r--r--src/output/plugins/OSXOutputPlugin.cxx2
3 files changed, 1 insertions, 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 <unicode/ustring.h>
#else
#include <algorithm>
-#include <ctype.h>
#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 <unicode/ustring.h>
#else
#include <algorithm>
-#include <ctype.h>
#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)