Commit 131fc83d authored by Huff, Israel's avatar Huff, Israel
Browse files

Fortify changes

parent 285d83ad
Pipeline #67105 failed with stages
in 20 minutes and 48 seconds
......@@ -29,10 +29,12 @@ TableView::PImpl::PImpl()
TableView::TableView(QWidget *parent)
: QTableView(parent)
, p(new PImpl(), [](PImpl *impl) { delete impl; })
, p(new PImpl(), deleter)
{
}
void TableView::deleter(PImpl *impl) { delete impl; }
char TableView::separator() const { return p->separator; }
void TableView::setSeparator(char value) { p->separator = value; }
......
......@@ -21,9 +21,10 @@ class RADIX_PUBLIC TableView : public QTableView
class PImpl;
std::unique_ptr<PImpl, void (*)(PImpl *)> p;
static void deleter(PImpl *impl);
public:
TableView(QWidget *parent = 0);
TableView(QWidget *parent = nullptr);
char separator() const;
void setSeparator(char value);
......
......@@ -832,6 +832,7 @@ bool vtkPlotPointsErrorBars::UpdateTableCache(vtkTable *table)
}
vtkDataArray *x = array[0];
vtkDataArray *y = array[1];
if (x == nullptr || y == nullptr) return false;
// Now copy the components into their new columns
if (this->UseIndexForXSeries)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment