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") {