summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CEncoding.cpp
authorgroucho <groucho>2003-05-07 09:01:39 (UTC)
committer groucho <groucho>2003-05-07 09:01:39 (UTC)
commit118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (side-by-side diff)
tree356953e2413cddcec0f35bd47bb6439767da7051 /noncore/apps/opie-reader/CEncoding.cpp
parent00894537decf01c5a5cdc565b2740b5e67a2e90f (diff)
downloadopie-118d03d815a7615b9c53363218a7ac45b3f4c514.zip
opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.gz
opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.bz2
Incorporated TimWs current source tree and make it compile
Diffstat (limited to 'noncore/apps/opie-reader/CEncoding.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/CEncoding.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/noncore/apps/opie-reader/CEncoding.cpp b/noncore/apps/opie-reader/CEncoding.cpp
index c1dcfe8..60a1057 100644
--- a/noncore/apps/opie-reader/CEncoding.cpp
+++ b/noncore/apps/opie-reader/CEncoding.cpp
@@ -5,5 +5,5 @@ void CUtf8::getch(tchar& ch, CStyle& sty)
{
- int iret;
- parent->getch(iret, sty);
- if (iret == EOF)
+ tchar ret;
+ parent->getch(ret, sty);
+ if (ret == UEOF)
{
@@ -12,3 +12,2 @@ void CUtf8::getch(tchar& ch, CStyle& sty)
}
- tchar ret = iret;
int count = 0;
@@ -20,2 +19,3 @@ void CUtf8::getch(tchar& ch, CStyle& sty)
ret <<= 6;
+ tchar iret;
parent->getch(iret, sty);
@@ -47,5 +47,5 @@ void CUcs16be::getch(tchar& ch, CStyle& sty)
{
- int iret;
+ tchar iret;
parent->getch(iret, sty);
- if (iret == EOF)
+ if (iret == UEOF)
{
@@ -61,5 +61,5 @@ void CUcs16le::getch(tchar& ch, CStyle& sty)
{
- int iret;
+ tchar iret;
parent->getch(iret, sty);
- if (iret == EOF)
+ if (iret == UEOF)
{
@@ -75,3 +75,3 @@ void Ccp1252::getch(tchar& ch, CStyle& sty)
{
- int iret;
+ tchar iret;
parent->getch(iret, sty);
@@ -80,3 +80,3 @@ void Ccp1252::getch(tchar& ch, CStyle& sty)
{
- case EOF:
+ case UEOF:
ch = UEOF;
@@ -199,5 +199,5 @@ void CAscii::getch(tchar& ch, CStyle& sty)
{
- int iret;
+ tchar iret;
parent->getch(iret, sty);
- if (iret == EOF)
+ if (iret == UEOF)
{