Browse Source

[Windows] NativeLib: Change c-style casts to static_cast<>

pull/235/head
weisj 4 years ago
parent
commit
5c3900d319
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 4
      windows/src/main/cpp/Decorations.cpp

4
windows/src/main/cpp/Decorations.cpp

@ -420,7 +420,7 @@ Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_setBackgrou
JNIEXPORT jboolean JNICALL JNIEXPORT jboolean JNICALL
Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_installDecorations(JNIEnv *env, jclass obj, jlong hwnd) { Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_installDecorations(JNIEnv *env, jclass obj, jlong hwnd) {
HWND handle = reinterpret_cast<HWND>(hwnd); HWND handle = reinterpret_cast<HWND>(hwnd);
return (jboolean) InstallDecorations(handle, false); return static_cast<jboolean>(InstallDecorations(handle, false));
} }
JNIEXPORT void JNICALL JNIEXPORT void JNICALL
@ -437,7 +437,7 @@ Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_uninstallDe
JNIEXPORT jboolean JNICALL JNIEXPORT jboolean JNICALL
Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_installPopupMenuDecorations(JNIEnv *env, jclass obj, jlong hwnd) { Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_installPopupMenuDecorations(JNIEnv *env, jclass obj, jlong hwnd) {
HWND handle = reinterpret_cast<HWND>(hwnd); HWND handle = reinterpret_cast<HWND>(hwnd);
return (jboolean) InstallDecorations(handle, true); return static_cast<jboolean>(InstallDecorations(handle, true));
} }
//Window functions. //Window functions.

Loading…
Cancel
Save