Skip to content

Commit 3ed4998

Browse files
committed
Format code
1 parent c183751 commit 3ed4998

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

plugins/alembic/module/Testing/TestF3DAlembicReaderRequestInformation.cxx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#include <vtkNew.h>
21
#include <vtkAlgorithm.h>
3-
#include <vtkTestUtilities.h>
4-
#include <vtkInformationVector.h>
52
#include <vtkInformation.h>
3+
#include <vtkInformationVector.h>
4+
#include <vtkNew.h>
65
#include <vtkStreamingDemandDrivenPipeline.h>
6+
#include <vtkTestUtilities.h>
77

88
#include "vtkF3DAlembicReader.h"
99

@@ -17,15 +17,21 @@ int TestF3DAlembicReaderRequestInformation(int vtkNotUsed(argc), char* argv[])
1717
reader->UpdateInformation();
1818
vtkInformation* readerInfo = reader->GetOutputInformation(0);
1919
double* readerTimeSteps = nullptr;
20-
if (readerInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_STEPS())) {
20+
if (readerInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_STEPS()))
21+
{
2122
readerTimeSteps = readerInfo->Get(vtkStreamingDemandDrivenPipeline::TIME_STEPS());
22-
} else {
23+
}
24+
else
25+
{
2326
return EXIT_FAILURE;
2427
}
2528
double* readerTimeRange = nullptr;
26-
if (readerInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_RANGE())) {
29+
if (readerInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_RANGE()))
30+
{
2731
readerTimeRange = readerInfo->Get(vtkStreamingDemandDrivenPipeline::TIME_RANGE());
28-
} else {
32+
}
33+
else
34+
{
2935
return EXIT_FAILURE;
3036
}
3137

plugins/alembic/module/vtkF3DAlembicReader.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ int vtkF3DAlembicReader::RequestInformation(vtkInformation* vtkNotUsed(request),
575575

576576
double timeRange[2] = { std::numeric_limits<double>::infinity(),
577577
-std::numeric_limits<double>::infinity() };
578-
std::vector<double> timeSteps {0};
578+
std::vector<double> timeSteps{ 0 };
579579
this->Internals->ComputeTimeRangeAndSteps(timeRange[0], timeRange[1], timeSteps);
580580

581581
vtkInformation* outInfo = outputVector->GetInformationObject(0);
@@ -585,7 +585,8 @@ int vtkF3DAlembicReader::RequestInformation(vtkInformation* vtkNotUsed(request),
585585
}
586586
if (timeSteps.size() > 0)
587587
{
588-
outInfo->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(), timeSteps.data(), timeSteps.size());
588+
outInfo->Set(
589+
vtkStreamingDemandDrivenPipeline::TIME_STEPS(), timeSteps.data(), timeSteps.size());
589590
}
590591

591592
return 1;

0 commit comments

Comments
 (0)