Correc the rest of the alignmnet issues.

This commit is contained in:
Robert Maynard 2014-05-19 13:20:02 -04:00
parent 40c579f119
commit ec2032e1d3
5 changed files with 7 additions and 7 deletions

@ -73,7 +73,7 @@ public:
/// arrays, then this method may save the iterators to be returned in the \c
/// GetPortalConst methods.
///
virtual void LoadDataForInput(cosnt PortalConstControl& portal) = 0;
virtual void LoadDataForInput(const PortalConstControl& portal) = 0;
/// Allocates a large enough array in the execution environment and copies
/// the given data to that array. The allocated array can later be accessed

@ -77,7 +77,7 @@ public:
}
VTKM_CONT_EXPORT
void Set(vtkm::Id index, ValueType value) const
void Set(vtkm::Id index, const ValueType& value) const
{
VTKM_ASSERT_CONT(index >= 0);
VTKM_ASSERT_CONT(index < this->GetNumberOfValues());

@ -60,7 +60,7 @@ struct IteratorFromArrayPortalValue
}
VTKM_CONT_EXPORT
ValueType operator=(ValueType value)
ValueType operator=(const ValueType& value)
{
this->Portal.Set(this->Index, value);
return value;

@ -40,7 +40,7 @@ struct TemplatedTests
typedef vtkm::cont::internal::ArrayContainerControl<
T, vtkm::cont::ArrayContainerControlTagBasic> ArrayContainerType;
void SetContainer(ArrayContainerType &array, ValueType value)
void SetContainer(ArrayContainerType &array, const ValueType& value)
{
std::fill(array.GetPortal().GetIteratorBegin(),
array.GetPortal().GetIteratorEnd(),
@ -48,7 +48,7 @@ struct TemplatedTests
}
template <class IteratorType>
bool CheckArray(IteratorType begin, IteratorType end, ValueType value)
bool CheckArray(IteratorType begin, IteratorType end, const ValueType& value)
{
for (IteratorType iter = begin; iter != end; iter++)
{
@ -57,7 +57,7 @@ struct TemplatedTests
return true;
}
bool CheckContainer(ArrayContainerType &array, ValueType value)
bool CheckContainer(ArrayContainerType &array, const ValueType& value)
{
return CheckArray(array.GetPortalConst().GetIteratorBegin(),
array.GetPortalConst().GetIteratorEnd(),

@ -38,7 +38,7 @@ struct TemplatedTests
typedef typename ArrayContainerType::PortalType PortalType;
typedef typename PortalType::IteratorType IteratorType;
void SetContainer(ArrayContainerType &array, ValueType value)
void SetContainer(ArrayContainerType &array, const ValueType& value)
{
for (IteratorType iter = array.GetPortal().GetIteratorBegin();
iter != array.GetPortal().GetIteratorEnd();