From ba4796547a50c0abb62ffe605ac7834db4e30539 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 3 Mar 2005 19:17:45 +0000 Subject: [PATCH] Follow api of wxInputStream (warning fixes). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/deprecated/resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/src/deprecated/resource.cpp b/contrib/src/deprecated/resource.cpp index a39d2202b4..8837544255 100644 --- a/contrib/src/deprecated/resource.cpp +++ b/contrib/src/deprecated/resource.cpp @@ -1624,7 +1624,7 @@ static bool wxEatWhiteSpace(wxInputStream *is) while (!finished) { ch = is->GetC(); - if (ch == EOF) + if (is->LastRead() == 0) return false; if (ch == '*') { @@ -1733,7 +1733,7 @@ bool wxGetResourceToken(wxInputStream *is) // Escaped characters else if (ch == '\\') { - int newCh = is->GetC(); + char newCh = is->GetC(); if (newCh == '"') actualCh = '"'; else if (newCh == 10) -- 2.47.2