Skip to content

Commit

Permalink
JDWindow: Fix known condition true/false (#990)
Browse files Browse the repository at this point in the history
値が既知の条件があるとcppcheck 2.8に指摘されたため修正します。

```
src/skeleton/window.cpp:621:17: style: Condition '!is_maximized_win()' is always true [knownConditionTrueFalse]
            if( ! is_maximized_win() && ! is_iconified_win() && get_window() ) set_win_pos();
                ^
```
  • Loading branch information
ma8ma committed May 29, 2022
1 parent c00a0dd commit 82572d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skeleton/window.cpp
Expand Up @@ -618,7 +618,7 @@ bool JDWindow::on_delete_event( GdkEventAny* event )
else{

// hideする前に座標保存
if( ! is_maximized_win() && ! is_iconified_win() && get_window() ) set_win_pos();
if( ! is_iconified_win() && get_window() ) set_win_pos();

hide();
m_mode = JDWIN_HIDE;
Expand Down

0 comments on commit 82572d3

Please sign in to comment.