From 416476290c88d15ac7297989f77fac50f5c9fcef Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 4 Apr 2000 13:35:59 +0000 Subject: Avoid lots of warnings from Borland C++. Changed name of interface class defined in Accessor.h to Accessor. --- src/Document.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index fb2650425..7a30d7fd1 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -604,7 +604,7 @@ long Document::FindText(int minPos, int maxPos, const char *s, bool caseSensitiv //Platform::DebugPrintf("Find %d %d %s %d\n", startPos, endPos, ft->lpstrText, lengthFind); char firstChar = s[0]; if (!caseSensitive) - firstChar = toupper(firstChar); + firstChar = static_cast(toupper(firstChar)); int pos = startPos; while (forward ? (pos < endSearch) : (pos >= endSearch)) { char ch = CharAt(pos); @@ -657,11 +657,11 @@ void Document::ChangeCase(Range r, bool makeUpperCase) { } else { if (makeUpperCase) { if (islower(ch)) { - ChangeChar(pos, toupper(ch)); + ChangeChar(pos, static_cast(toupper(ch))); } } else { if (isupper(ch)) { - ChangeChar(pos, tolower(ch)); + ChangeChar(pos, static_cast(tolower(ch))); } } } -- cgit v1.2.3