Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed May 2, 2024
1 parent 2b06353 commit c270ebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/fluent_tray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(menus_.size()) ; i ++) {
auto& menu = menus_[i] ;
auto detected_hwnd = WindowFromPoint(pos) ;
if(!detected_hwnd) {
Expand All @@ -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<int>(menus_.size()) ; i ++) {
if(i == select_index_) {
if(!status_if_focus[i]) {
// OFF -> ON
Expand Down
2 changes: 0 additions & 2 deletions tests/menu_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit c270ebe

Please sign in to comment.