Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ PostOrderTreeIterator<TTreeType>::PostOrderTreeIterator(TTreeType * tree)
const auto * root = dynamic_cast<const TreeNodeType *>(tree->GetRoot());
if (root == nullptr)
{
itkGenericExceptionMacro(<< "Can't downcast root node to TreeNodeType *");
itkGenericExceptionMacro("Can't downcast root node to TreeNodeType *");
}
this->m_Position = const_cast<TreeNodeType *>(root);
this->m_Position = const_cast<TreeNodeType *>(FindMostRightLeaf(this->m_Position));
Expand Down Expand Up @@ -138,7 +138,7 @@ PostOrderTreeIterator<TTreeType>::FindNextNode() const
auto * rval = dynamic_cast<TreeNodeType *>(this->m_Position->GetParent());
if (rval == nullptr)
{
itkGenericExceptionMacro(<< "Can't downcast to TreeNodeType *");
itkGenericExceptionMacro("Can't downcast to TreeNodeType *");
}
return rval;
}
Expand All @@ -156,7 +156,7 @@ PostOrderTreeIterator<TTreeType>::FindSister(TreeNodeType * node) const
auto * parent = dynamic_cast<TreeNodeType *>(node->GetParent());
if (parent == nullptr)
{
itkGenericExceptionMacro(<< "Can't downcast to TreeNodeType *");
itkGenericExceptionMacro("Can't downcast to TreeNodeType *");
}

int childPosition = parent->ChildPosition(node);
Expand All @@ -173,7 +173,7 @@ PostOrderTreeIterator<TTreeType>::FindSister(TreeNodeType * node) const
auto * sister = dynamic_cast<TreeNodeType *>(parent->GetChild(childPosition + 1));
if (sister == nullptr)
{
itkGenericExceptionMacro(<< "Can't downcast to TreeNodeType *");
itkGenericExceptionMacro("Can't downcast to TreeNodeType *");
}
return sister;
}
Expand Down Expand Up @@ -203,7 +203,7 @@ PostOrderTreeIterator<TTreeType>::FindMostRightLeaf(TreeNodeType * node) const
helpNode = dynamic_cast<TreeNodeType *>(node->GetChild(i));
if (helpNode == nullptr)
{
itkGenericExceptionMacro(<< "Can't downcast to TreeNodeType *");
itkGenericExceptionMacro("Can't downcast to TreeNodeType *");
}
}
++i;
Expand Down
12 changes: 6 additions & 6 deletions Modules/Core/Common/include/itkByteSwapper.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ByteSwapper<T>::SwapFromSystemToBigEndian(T * p)
Self::Swap8(p);
return;
default:
itkGenericExceptionMacro(<< "Cannot swap number of bytes requested");
itkGenericExceptionMacro("Cannot swap number of bytes requested");
}
}

Expand Down Expand Up @@ -129,7 +129,7 @@ ByteSwapper<T>::SwapRangeFromSystemToBigEndian(T * p, BufferSizeType num)
Self::Swap8Range(p, num);
return;
default:
itkGenericExceptionMacro(<< "Cannot swap number of bytes requested");
itkGenericExceptionMacro("Cannot swap number of bytes requested");
}
}

Expand Down Expand Up @@ -163,7 +163,7 @@ ByteSwapper<T>::SwapWriteRangeFromSystemToBigEndian(const T * p, int num, OStrea
Self::SwapWrite8Range(p, num, fp);
return;
default:
itkGenericExceptionMacro(<< "Cannot swap number of bytes requested");
itkGenericExceptionMacro("Cannot swap number of bytes requested");
}
}

Expand All @@ -190,7 +190,7 @@ ByteSwapper<T>::SwapFromSystemToLittleEndian(T * p)
Self::Swap8(p);
return;
default:
itkGenericExceptionMacro(<< "Cannot swap number of bytes requested");
itkGenericExceptionMacro("Cannot swap number of bytes requested");
}
}

Expand Down Expand Up @@ -220,7 +220,7 @@ ByteSwapper<T>::SwapRangeFromSystemToLittleEndian(T * p, BufferSizeType num)
Self::Swap8Range(p, num);
return;
default:
itkGenericExceptionMacro(<< "Cannot swap number of bytes requested");
itkGenericExceptionMacro("Cannot swap number of bytes requested");
}
}

Expand Down Expand Up @@ -250,7 +250,7 @@ ByteSwapper<T>::SwapWriteRangeFromSystemToLittleEndian(const T * p, int num, OSt
Self::SwapWrite8Range(p, num, fp);
return;
default:
itkGenericExceptionMacro(<< "Cannot swap number of bytes requested");
itkGenericExceptionMacro("Cannot swap number of bytes requested");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ ConstShapedNeighborhoodIterator<TImage, TBoundaryCondition>::CreateActiveListFro
{
if (this->GetRadius() != neighborhood.GetRadius())
{
itkGenericExceptionMacro(<< "Radius of shaped iterator(" << this->GetRadius()
<< ") does not equal radius of neighborhood(" << neighborhood.GetRadius() << ')');
itkGenericExceptionMacro("Radius of shaped iterator(" << this->GetRadius()
<< ") does not equal radius of neighborhood("
<< neighborhood.GetRadius() << ')');
}
typename NeighborhoodType::ConstIterator nit;
NeighborIndexType idx = 0;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkExtractImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void
ExtractImageFilter<TInputImage, TOutputImage>::DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
{
itkDebugMacro(<< "Actually executing");
itkDebugMacro("Actually executing");

const InputImageType * inputPtr = this->GetInput();
OutputImageType * outputPtr = this->GetOutput();
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkGaussianOperator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ GaussianOperator<TPixel, VDimension, TAllocator>::GenerateCoefficients() -> Coef
}
if (coeff.size() > m_MaximumKernelWidth)
{
itkDebugMacro(<< "Kernel size has exceeded the specified maximum width of " << m_MaximumKernelWidth
<< " and has been truncated to " << coeff.size()
itkDebugMacro("Kernel size has exceeded the specified maximum width of "
<< m_MaximumKernelWidth << " and has been truncated to " << coeff.size()
<< " elements. You can raise the maximum width using the SetMaximumKernelWidth method.");
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ class ITK_TEMPLATE_EXPORT ImageLinearConstIteratorWithIndex : public ImageConstI
{
if (direction >= TImage::ImageDimension)
{
itkGenericExceptionMacro(<< "In image of dimension " << TImage::ImageDimension << " Direction " << direction
<< " was selected");
itkGenericExceptionMacro("In image of dimension " << TImage::ImageDimension << " Direction " << direction
<< " was selected");
}
m_Direction = direction;
m_Jump = this->m_OffsetTable[m_Direction];
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkImageRegion.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ ImageRegion<VImageDimension>::Slice(const unsigned int dim) const -> SliceRegion
{
if (dim >= VImageDimension)
{
itkGenericExceptionMacro(<< "The dimension to remove: " << dim
<< " is greater than the dimension of the image: " << VImageDimension);
itkGenericExceptionMacro(
"The dimension to remove: " << dim << " is greater than the dimension of the image: " << VImageDimension);
}

Index<SliceDimension> sliceIndex;
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkImageSink.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ImageSink<TInputImage>::GetInput(unsigned int idx) const -> const InputImageType

if (in == nullptr && this->ProcessObject::GetInput(idx) != nullptr)
{
itkWarningMacro(<< "Unable to convert input number " << idx << " to type " << typeid(InputImageType).name());
itkWarningMacro("Unable to convert input number " << idx << " to type " << typeid(InputImageType).name());
}
return in;
}
Expand All @@ -75,7 +75,7 @@ ImageSink<TInputImage>::GetInput(const DataObjectIdentifierType & key) const ->

if (in == nullptr && this->ProcessObject::GetInput(key) != nullptr)
{
itkWarningMacro(<< "Unable to convert input \"" << key << "\" to type " << typeid(InputImageType).name());
itkWarningMacro("Unable to convert input \"" << key << "\" to type " << typeid(InputImageType).name());
}
return in;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ ImageSliceConstIteratorWithIndex<TImage>::SetFirstDirection(unsigned int directi
{
if (direction >= TImage::ImageDimension)
{
itkGenericExceptionMacro(<< "In image of dimension " << TImage::ImageDimension << " Direction " << direction
<< " sas selected");
itkGenericExceptionMacro("In image of dimension " << TImage::ImageDimension << " Direction " << direction
<< " sas selected");
}
m_Direction_A = direction;
m_PixelJump = this->m_OffsetTable[m_Direction_A];
Expand All @@ -200,8 +200,8 @@ ImageSliceConstIteratorWithIndex<TImage>::SetSecondDirection(unsigned int direct
{
if (direction >= TImage::ImageDimension)
{
itkGenericExceptionMacro(<< "In image of dimension " << TImage::ImageDimension << " Direction " << direction
<< " sas selected");
itkGenericExceptionMacro("In image of dimension " << TImage::ImageDimension << " Direction " << direction
<< " sas selected");
}
m_Direction_B = direction;
m_LineJump = this->m_OffsetTable[m_Direction_B];
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImageSource.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ImageSource<TOutputImage>::GetOutput(unsigned int idx) -> OutputImageType *

if (out == nullptr && this->ProcessObject::GetOutput(idx) != nullptr)
{
itkWarningMacro(<< "Unable to convert output number " << idx << " to type " << typeid(OutputImageType).name());
itkWarningMacro("Unable to convert output number " << idx << " to type " << typeid(OutputImageType).name());
}
return out;
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImageToImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ImageToImageFilter<TInputImage, TOutputImage>::GetInput(unsigned int idx) const

if (in == nullptr && this->ProcessObject::GetInput(idx) != nullptr)
{
itkWarningMacro(<< "Unable to convert input number " << idx << " to type " << typeid(InputImageType).name());
itkWarningMacro("Unable to convert input number " << idx << " to type " << typeid(InputImageType).name());
}
return in;
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkLineConstIterator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ LineConstIterator<TImage>::operator++()
// The new index is outside the acceptable region. We can iterate no
// farther, call this the end. NOTE THAT INPUT IS STILL INCREMENTED.
m_IsAtEnd = true;
itkWarningMacro(<< "Line left region; unable to finish tracing it");
itkWarningMacro("Line left region; unable to finish tracing it");
}
}
} // end namespace itk
Expand Down
8 changes: 4 additions & 4 deletions Modules/Core/Common/include/itkMacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ OutputWindowDisplayDebugText(const char *);
/** This macro is used to print debug (or other information). They are
* also used to catch errors, etc. Requires that the caller implements
* the GetDebug() method (see itk::Object). Example usage looks like:
* itkDebugMacro(<< "this is debug info" << this->SomeVariable); */
* itkDebugMacro("this is debug info" << this->SomeVariable); */
#if defined(NDEBUG)
# define itkDebugMacro(x) ITK_NOOP_STATEMENT
# define itkDebugStatement(x) ITK_NOOP_STATEMENT
Expand All @@ -494,7 +494,7 @@ OutputWindowDisplayDebugText(const char *);

/** This macro is used to print warning information (i.e., unusual circumstance
* but not necessarily fatal.) Example usage looks like:
* itkWarningMacro(<< "this is warning info" << this->SomeVariable); */
* itkWarningMacro("this is warning info" << this->SomeVariable); */
#define itkWarningMacro(x) \
do \
{ \
Expand Down Expand Up @@ -1374,8 +1374,8 @@ itkDynamicCastInDebugMode(TSource x)
TTarget rval = dynamic_cast<TTarget>(x);
if (rval == nullptr)
{
itkGenericExceptionMacro(<< "Failed dynamic cast to " << typeid(TTarget).name()
<< " object type = " << x->GetNameOfClass());
itkGenericExceptionMacro("Failed dynamic cast to " << typeid(TTarget).name()
<< " object type = " << x->GetNameOfClass());
}
return rval;
#else
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class ITK_TEMPLATE_EXPORT Matrix
{
if (vnl_determinant(m_Matrix) == NumericTraits<T>::ZeroValue())
{
itkGenericExceptionMacro(<< "Singular matrix. Determinant is 0.");
itkGenericExceptionMacro("Singular matrix. Determinant is 0.");
}
vnl_matrix_inverse<T> inverse(m_Matrix.as_ref());
return vnl_matrix_fixed<T, VColumns, VRows>{ inverse.as_matrix() };
Expand Down
Loading