Skip to content

Commit

Permalink
STYLE: Remove initial << from itkGenericOutputMacro(<< " calls
Browse files Browse the repository at this point in the history
Follow-up to pull request #4057
commit 89beb04
"STYLE: Remove initial `<<` insertion from `itkExceptionMacro(<< "` calls"

Aims to shorten the code a little bit, and improve consistency. The code base
already had seven `itkGenericOutputMacro` calls that passed a literal string as
first argument directly, without having `<<` at its left side.
  • Loading branch information
N-Dekker authored and dzenanz committed Jun 2, 2023
1 parent c6fedbd commit 30ef873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Common/src/itkObjectFactoryBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ ObjectFactoryBase::RegisterFactory(ObjectFactoryBase * factory, InsertionPositio
}
else
{
itkGenericOutputMacro(<< "Possible incompatible factory load:"
itkGenericOutputMacro("Possible incompatible factory load:"
<< "\nRunning itk version :\n"
<< Version::GetITKSourceVersion() << "\nLoaded factory version:\n"
<< factory->GetITKSourceVersion() << "\nLoading factory:\n"
Expand Down
2 changes: 1 addition & 1 deletion Modules/IO/ImageBase/test/itkVectorImageReadWriteTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ itkVectorImageReadWriteTest(int argc, char * argv[])

if (argc < 2)
{
itkGenericOutputMacro(<< "Need a file to process");
itkGenericOutputMacro("Need a file to process");
return EXIT_FAILURE;
}

Expand Down

0 comments on commit 30ef873

Please sign in to comment.