mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
Removed unnecessary null pointer checks, closes #5
This commit is contained in:
parent
116794e89b
commit
1ea2771e32
4 changed files with 12 additions and 26 deletions
|
|
@ -352,9 +352,7 @@ void TraceBodePlot::enableTraceAxis(Trace *t, int axis, bool enabled)
|
|||
tracesAxis[axis].erase(t);
|
||||
// clean up and delete
|
||||
if(curves[axis].find(t) != curves[axis].end()) {
|
||||
if(curves[axis][t].curve) {
|
||||
delete curves[axis][t].curve;
|
||||
}
|
||||
delete curves[axis][t].curve;
|
||||
curves[axis].erase(t);
|
||||
}
|
||||
int otherAxis = axis == 0 ? 1 : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue