Commit c9a547f1 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

Minor style fixups (braces, anonymous namespace)

Change-Id: I0cdb695f1fed0811987fd0c33eaa254c96636f62
parent b7fd2a71
......@@ -162,7 +162,9 @@ static bool CheckUniques(vtkAbstractArray* arr, int* uniqueSizeBds)
{
bool ok = true;
if (!arr)
{
return ok;
}
cout << arr->GetName() << endl;
......
......@@ -37,7 +37,7 @@
#include "vtkInformationIntegerKey.h"
#include "vtkInformationInformationVectorKey.h"
#include "vtkInformationVariantVectorKey.h"
#include <vtkNew.h>
#include "vtkNew.h"
#include "vtkUnicodeString.h" // for vtkSuperExtraExtendedTemplateMacro
#if defined(VTK_TYPE_USE_LONG_LONG)
......@@ -486,7 +486,9 @@ void vtkAbstractArray::GetUniqueComponentValues(
int comp, vtkVariantArray* values)
{
if (!values || comp < -1)
{
return;
}
values->Initialize();
values->SetNumberOfComponents(comp < 0 ? this->NumberOfComponents : 1);
......@@ -534,6 +536,8 @@ void vtkAbstractArray::GetUniqueComponentValues(
}
//--------------------------------------------------------------------------
namespace
{
template<typename T>
bool AccumulateSampleValues(
T* array, int nc, vtkIdType begin, vtkIdType end,
......@@ -581,6 +585,7 @@ bool AccumulateSampleValues(
}
return ndc == 0;
}
} // End anonymous namespace.
//--------------------------------------------------------------------------
void vtkAbstractArray::UpdateDiscreteValueSet()
......
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