Fixed a lot of issues reported by cppcheck 1.78
This commit is contained in:
@@ -2113,12 +2113,6 @@ void EditorPanel::updateHistogramPosition (int oldPosition, int newPosition)
|
||||
// No histogram
|
||||
if (!oldPosition) {
|
||||
// An histogram actually exist, we delete it
|
||||
if (oldPosition == 1) {
|
||||
removeIfThere (leftbox, histogramPanel, false);
|
||||
} else if (oldPosition == 2) {
|
||||
removeIfThere (vboxright, histogramPanel, false);
|
||||
}
|
||||
|
||||
delete histogramPanel;
|
||||
histogramPanel = nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user