From 30027481f7f9e9191f7c8deea51850b7a76b1b1f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 23 Feb 2013 21:46:21 -0500 Subject: Remove all old-style casts from C++ code --- libqpdf/FileInputSource.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libqpdf/FileInputSource.cc') diff --git a/libqpdf/FileInputSource.cc b/libqpdf/FileInputSource.cc index b1f7b5d2..b49fad99 100644 --- a/libqpdf/FileInputSource.cc +++ b/libqpdf/FileInputSource.cc @@ -62,8 +62,8 @@ FileInputSource::findAndSkipNextEOL() } else { - char* p1 = (char*)memchr((void*)buf, '\r', len); - char* p2 = (char*)memchr((void*)buf, '\n', len); + char* p1 = static_cast(memchr(buf, '\r', len)); + char* p2 = static_cast(memchr(buf, '\n', len)); char* p = (p1 && p2) ? std::min(p1, p2) : p1 ? p1 : p2; if (p) { @@ -137,5 +137,5 @@ void FileInputSource::unreadCh(char ch) { QUtil::os_wrapper(this->filename + ": unread character", - ungetc((unsigned char)ch, this->file)); + ungetc(static_cast(ch), this->file)); } -- cgit v1.2.3-54-g00ecf