diff --git a/src/windows/native/sun/windows/awt_InputMethod.cpp b/src/windows/native/sun/windows/awt_InputMethod.cpp index 1b087aa1506075eb3cfdfccdbc024ffe0801f42d..64475041002f130895db548201b092382f9561a9 100644 --- a/src/windows/native/sun/windows/awt_InputMethod.cpp +++ b/src/windows/native/sun/windows/awt_InputMethod.cpp @@ -454,7 +454,7 @@ JNIEXPORT jobjectArray JNICALL Java_sun_awt_windows_WInputMethodDescriptor_getNa TRY; // get list of available HKLs - int layoutCount = ::GetKeyboardLayoutList(0, NULL); + const int layoutCount = ::GetKeyboardLayoutList(0, NULL); HKL FAR * hKLList = (HKL FAR *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(HKL), layoutCount); CHECK_NULL_RETURN(hKLList, NULL); ::GetKeyboardLayoutList(layoutCount, hKLList); diff --git a/src/windows/native/sun/windows/awt_List.cpp b/src/windows/native/sun/windows/awt_List.cpp index c35c0f4207b6c5b5ff473d37e3e1308f6d4cb369..c6cec8fe08b2c3a40db761af720420d7a426e595 100644 --- a/src/windows/native/sun/windows/awt_List.cpp +++ b/src/windows/native/sun/windows/awt_List.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -219,7 +219,7 @@ void AwtList::SetMultiSelect(BOOL ms) { JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2); /* Copy current box's contents to string array */ - int nCount = GetCount(); + const int nCount = GetCount(); LPTSTR * strings = new LPTSTR[nCount]; int i;