aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-01-10 23:11:57 +0000
committernyamatongwe <unknown>2002-01-10 23:11:57 +0000
commit9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba (patch)
treeccf8d10998c2a32af1e3a8e66cf75d93669fc6a1 /win32/PlatWin.cxx
parentd43d89fa81e0b04b762c2a9d58cb3d86d0400ec2 (diff)
downloadscintilla-mirror-9fbdf629124454ddfc8ff9fc10ed4841d2ef8fba.tar.gz
Made code bool-safe and turned Visual C++ warning 4800 back on.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index c6adbf327..bfec57ea4 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -880,7 +880,7 @@ static LARGE_INTEGER frequency;
ElapsedTime::ElapsedTime() {
if (!initialisedET) {
- usePerformanceCounter = ::QueryPerformanceFrequency(&frequency);
+ usePerformanceCounter = ::QueryPerformanceFrequency(&frequency) != 0;
initialisedET = true;
}
if (usePerformanceCounter) {
@@ -946,7 +946,7 @@ void Platform::DebugDisplay(const char *s) {
}
bool Platform::IsKeyDown(int key) {
- return ::GetKeyState(key) & 0x80000000;
+ return (::GetKeyState(key) & 0x80000000) != 0;
}
long Platform::SendScintilla(WindowID w, unsigned int msg, unsigned long wParam, long lParam) {
@@ -954,7 +954,7 @@ long Platform::SendScintilla(WindowID w, unsigned int msg, unsigned long wParam,
}
bool Platform::IsDBCSLeadByte(int codePage, char ch) {
- return ::IsDBCSLeadByteEx(codePage, ch);
+ return ::IsDBCSLeadByteEx(codePage, ch) != 0;
}
// These are utility functions not really tied to a platform