Details
Details
Diff Detail
Diff Detail
- Repository
- R337 KTurtle
- Branch
- NullPointer
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 3820 Build 3838: arc lint + arc unit
Comment Actions
Check your Indentation you seam to have moved all your modified lines in a bit.
src/editor.cpp | ||
---|---|---|
427 ↗ | (On Diff #43431) | In this situation we can do this. if (pointer) { pointer is something } else { pointer is null } since any non 0 value is true if your pointer has be initialized will be "true" |
src/mainwindow.cpp | ||
---|---|---|
139 | Missed one |
src/mainwindow.cpp | ||
---|---|---|
139 | check your logic here. if(!colorPicker) here |
Comment Actions
Oh you're doing this manually?
You really want to be using a tool for this
https://www.kdab.com/clang-tidy-part-1-modernize-source-code-using-c11c14/
has some example of how to use clang-tidy to run the modernize-use-nullptr "checker"