Commit f08cead0 authored by Sean McBride's avatar Sean McBride
Browse files

Auto-applied a couple of clang-tidy readability-container-size-empty warnings

parent 8c6cf284
......@@ -112,7 +112,7 @@ bool vtkPlotBox::Paint(vtkContext2D *painter)
return false;
}
if (this->Storage->size() == 0 || this->Storage->at(0).size() != 5)
if (this->Storage->empty() || this->Storage->at(0).size() != 5)
{
vtkErrorMacro( << "Input table must contain 5 rows per column. These rows hold min, quartile 1, median, quartile 2 and max. Use vtkComputeQuartiles to create a proper table.");
return false;
......@@ -211,7 +211,7 @@ vtkStringArray* vtkPlotBox::GetLabels()
//-----------------------------------------------------------------------------
bool vtkPlotBox::PaintLegend(vtkContext2D* painter, const vtkRectf& rec, int)
{
if (this->Storage->size() == 0 || this->Storage->at(0).size() < 5)
if (this->Storage->empty() || this->Storage->at(0).size() < 5)
{
return false;
}
......
Supports Markdown
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