Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageViewBase: Remove redundant null check #383

Merged

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Jul 4, 2020

ポインターがnullの可能性があるとclang analyzerに指摘されましたが冗長なnullチェックを削除して検出しないように修正します。

Bug reported by the clang static analyzer.

Description: Called C++ object pointer is null
File: /home/ma8ma/var/repos/worktree/jdim-echo/src/message/messageviewbase.cpp
Line: 999

ポインターがnullの可能性があるとclang analyzerに指摘されましたが
冗長なnullチェックを削除して検出しないように修正します。

Bug reported by the clang static analyzer.
```
Description: Called C++ object pointer is null
File: /home/ma8ma/var/repos/worktree/jdim-echo/src/message/messageviewbase.cpp
Line: 999
```
@ma8ma ma8ma added the refactoring コードの整理 (バグ修正でも機能変更でもない) label Jul 4, 2020
@ma8ma ma8ma added this to In progress in State of JDim-v0.3.0+ via automation Jul 4, 2020
@ma8ma ma8ma merged commit c90e20f into JDimproved:master Jul 4, 2020
State of JDim-v0.3.0+ automation moved this from In progress to Done Jul 4, 2020
@ma8ma ma8ma deleted the messageviewbase-remove-redundnt-null-check branch July 4, 2020 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring コードの整理 (バグ修正でも機能変更でもない)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant