From c270ebe0213b103b30ea2f03e20c1de9f5e01a02 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Fri, 3 May 2024 00:49:42 +0900 Subject: [PATCH] fix warning --- include/fluent_tray.hpp | 4 ++-- tests/menu_test.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/fluent_tray.hpp b/include/fluent_tray.hpp index b3cd874..a608c92 100644 --- a/include/fluent_tray.hpp +++ b/include/fluent_tray.hpp @@ -943,7 +943,7 @@ namespace fluent_tray if(pos.x != previous_mouse_pos_.x || pos.y != previous_mouse_pos_.y) { // The mouse cursor is moved, so switch to the mouse-mode. - for(int i = 0 ; i < menus_.size() ; i ++) { + for(int i = 0 ; i < static_cast(menus_.size()) ; i ++) { auto& menu = menus_[i] ; auto detected_hwnd = WindowFromPoint(pos) ; if(!detected_hwnd) { @@ -964,7 +964,7 @@ namespace fluent_tray } // Update the color of only changed menu. - for(int i = 0 ; i < menus_.size() ; i ++) { + for(int i = 0 ; i < static_cast(menus_.size()) ; i ++) { if(i == select_index_) { if(!status_if_focus[i]) { // OFF -> ON diff --git a/tests/menu_test.cpp b/tests/menu_test.cpp index 31d9770..8cfb186 100644 --- a/tests/menu_test.cpp +++ b/tests/menu_test.cpp @@ -14,8 +14,6 @@ TEST_CASE("FluentMenu Test: ") { std::string str{} ; CHECK(menu.get_label(str)) ; CHECK(str.empty()) ; - - CHECK_FALSE(menu.is_mouse_over()) ; } SUBCASE("Error Check: create_menu") {