Skip to content

Commit

Permalink
STYLE: Remove whitespace before scope resolution operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Leengit authored and hjmjohnson committed Jan 23, 2025
1 parent f56ed1a commit 480559b
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Common/test/ClientTestLibraryA.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dynamic_castDownCast(const char * type, const char * instanceSource, const itk::
namespace LibraryA
{

ITKObjectProducer ::ITKObjectProducer()
ITKObjectProducer::ITKObjectProducer()
{
m_EquivalencyTable = itk::EquivalencyTable::New();
using ImageType = itk::Image<float, 3>;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/test/ClientTestLibraryB.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dynamic_castDownCast(const char * type, const char * instanceSource, const itk::
namespace LibraryB
{

ITKObjectProducer ::ITKObjectProducer()
ITKObjectProducer::ITKObjectProducer()
{
m_EquivalencyTable = itk::EquivalencyTable::New();
using ImageType = itk::Image<float, 3>;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/test/ClientTestLibraryC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dynamic_castDownCast(const char * type, const char * instanceSource, const itk::
namespace LibraryC
{

ITKObjectProducer ::ITKObjectProducer()
ITKObjectProducer::ITKObjectProducer()
{
m_EquivalencyTable = itk::EquivalencyTable::New();
using ImageType = itk::Image<float, 3>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ template <typename TImage1, typename TImage2>
struct MakeJoin
{
using FunctorType = JoinFunctor<typename TImage1::PixelType, typename TImage2::PixelType>;
using ImageType = Image<typename FunctorType::JoinType, TImage1 ::ImageDimension>;
using ImageType = Image<typename FunctorType::JoinType, TImage1::ImageDimension>;
};
} // namespace Functor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ TEST_F(StatisticsLabelMapFixture, 2D_zero)
using namespace itk::GTest::TypedefsAndConstructors::Dimension2;

auto image = Utils::CreateImage();
auto labelImage = Utils ::CreateLabelImage();
auto labelImage = Utils::CreateLabelImage();

constexpr Utils::LabelPixelType label = 1;
labelImage->FillBuffer(label);
Expand Down Expand Up @@ -199,7 +199,7 @@ TEST_F(StatisticsLabelMapFixture, 2D_ones_with_outliers)
image->SetPixel(itk::MakeIndex(0, 1), -32000);


auto labelImage = Utils ::CreateLabelImage();
auto labelImage = Utils::CreateLabelImage();
constexpr Utils::LabelPixelType label = 1;
labelImage->FillBuffer(label);
labelImage->SetPixel(itk::MakeIndex(0, 0), 0);
Expand Down Expand Up @@ -227,7 +227,7 @@ TEST_F(StatisticsLabelMapFixture, 2D_rand_with_outliers)
using namespace itk::GTest::TypedefsAndConstructors::Dimension2;

auto image = Utils::CreateImageRandom(500, 0);
auto labelImage = Utils ::CreateLabelImage();
auto labelImage = Utils::CreateLabelImage();

// Test with outliers outside the label.
image->SetPixel(itk::MakeIndex(0, 0), 32000);
Expand Down Expand Up @@ -262,7 +262,7 @@ TEST_F(StatisticsLabelMapFixture, 2D_even)
using namespace itk::GTest::TypedefsAndConstructors::Dimension2;

auto image = Utils::CreateImage();
auto labelImage = Utils ::CreateLabelImage();
auto labelImage = Utils::CreateLabelImage();

// Set label with two elements far apart, the median should be average
image->SetPixel(itk::MakeIndex(0, 0), 10);
Expand Down Expand Up @@ -300,7 +300,7 @@ TEST_F(StatisticsLabelMapFixture, 2D_three)
using namespace itk::GTest::TypedefsAndConstructors::Dimension2;

auto image = Utils::CreateImage();
auto labelImage = Utils ::CreateLabelImage();
auto labelImage = Utils::CreateLabelImage();

// Set label with two elements far apart, the median should be average
image->SetPixel(itk::MakeIndex(0, 0), 1);
Expand Down
18 changes: 9 additions & 9 deletions Modules/IO/ImageBase/test/itkFileFreeImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
namespace itk
{

FileFreeImageIO ::FileFreeImageIO() {}
FileFreeImageIO::FileFreeImageIO() {}

FileFreeImageIO::~FileFreeImageIO() {}

bool
FileFreeImageIO ::CanReadFile(const char * filename)
FileFreeImageIO::CanReadFile(const char * filename)
{
itksys::RegularExpression findPrefix("^FileFreeIO::");
if (findPrefix.find(filename))
Expand All @@ -44,7 +44,7 @@ FileFreeImageIO ::CanReadFile(const char * filename)
}

void
FileFreeImageIO ::ReadImageInformation()
FileFreeImageIO::ReadImageInformation()
{

// type
Expand Down Expand Up @@ -166,27 +166,27 @@ FileFreeImageIO ::ReadImageInformation()

// Read from the generated image
void
FileFreeImageIO ::Read(void * buffer)
FileFreeImageIO::Read(void * buffer)
{
memset(buffer, static_cast<unsigned char>(175), this->GetImageSizeInBytes());
}

bool
FileFreeImageIO ::CanWriteFile(const char *)
FileFreeImageIO::CanWriteFile(const char *)
{
return false;
}

void
FileFreeImageIO ::WriteImageInformation()
FileFreeImageIO::WriteImageInformation()
{}

void
FileFreeImageIO ::Write(const void *)
FileFreeImageIO::Write(const void *)
{}

void
FileFreeImageIO ::SplitString(const std::string & text,
FileFreeImageIO::SplitString(const std::string & text,
const std::string & separators,
std::vector<std::string> & words)
{
Expand All @@ -205,7 +205,7 @@ FileFreeImageIO ::SplitString(const std::string & text,
}

void
FileFreeImageIO ::PrintSelf(std::ostream & os, Indent indent) const
FileFreeImageIO::PrintSelf(std::ostream & os, Indent indent) const
{
Superclass::PrintSelf(os, indent);
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/ThirdParty/MetaIO/src/MetaIO/src/metaContour.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ MetaContour::Closed(bool close)
}

bool
MetaContour ::Closed() const
MetaContour::Closed() const
{
return m_Closed;
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/ThirdParty/MetaIO/src/MetaIO/src/metaFEMObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ MetaFEMObject::ReadGlobalNumber()
}

// string containing all whitespace characters
const std::string MetaFEMObject ::whitespaces = " \t\n\r";
const std::string MetaFEMObject::whitespaces = " \t\n\r";

#if (METAIO_USE_NAMESPACE)
}
Expand Down
18 changes: 9 additions & 9 deletions Modules/ThirdParty/MetaIO/src/MetaIO/src/metaObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ MetaObject::ClearFields()

// Clear UserFields
void
MetaObject ::ClearUserFields()
MetaObject::ClearUserFields()
{
// Clear write field
auto it = m_UserDefinedWriteFields.begin();
Expand Down Expand Up @@ -230,7 +230,7 @@ MetaObject ::ClearUserFields()

// Clear AdditionalReadFields
void
MetaObject ::ClearAdditionalFields()
MetaObject::ClearAdditionalFields()
{
// Clear read field
auto it = m_AdditionalReadFields.begin();
Expand Down Expand Up @@ -1788,7 +1788,7 @@ MetaObject::M_Write()


bool
MetaObject ::Append(const char * _headName)
MetaObject::Append(const char * _headName)
{
META_DEBUG_PRINT( "MetaObject: Append" );

Expand Down Expand Up @@ -1824,7 +1824,7 @@ MetaObject ::Append(const char * _headName)

// Get the user field
void *
MetaObject ::GetUserField(const char * _name)
MetaObject::GetUserField(const char * _name)
{
auto it = m_UserDefinedReadFields.begin();
auto end = m_UserDefinedReadFields.end();
Expand Down Expand Up @@ -1874,31 +1874,31 @@ MetaObject ::GetUserField(const char * _name)
}

int
MetaObject ::GetNumberOfAdditionalReadFields()
MetaObject::GetNumberOfAdditionalReadFields()
{
return static_cast<int>(m_AdditionalReadFields.size());
}

char *
MetaObject ::GetAdditionalReadFieldName(int i)
MetaObject::GetAdditionalReadFieldName(int i)
{
return m_AdditionalReadFields[i]->name;
}

char *
MetaObject ::GetAdditionalReadFieldValue(int i)
MetaObject::GetAdditionalReadFieldValue(int i)
{
return reinterpret_cast<char *>(m_AdditionalReadFields[i]->value);
}

int
MetaObject ::GetAdditionalReadFieldValueLength(int i)
MetaObject::GetAdditionalReadFieldValueLength(int i)
{
return m_AdditionalReadFields[i]->length;
}

bool
MetaObject ::AddUserField(const char * _fieldName, MET_ValueEnumType _type, int _length, bool _required, int _dependsOn)
MetaObject::AddUserField(const char * _fieldName, MET_ValueEnumType _type, int _length, bool _required, int _dependsOn)
{
auto it = m_UserDefinedReadFields.begin();
auto end = m_UserDefinedReadFields.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ test_math()
#define RETURN_TYPE_TEST(funcname, argtypename, returntypename) \
{ \
const bool test_return_type = \
std::is_same<decltype(vnl_math ::funcname(static_cast<argtypename>(123.4))), returntypename>(); \
std::is_same<decltype(vnl_math::funcname(static_cast<argtypename>(123.4))), returntypename>(); \
TEST("vnl_math::" #funcname "<" #argtypename "> returns " #returntypename " type", test_return_type, true); \
} \
void()
Expand Down

0 comments on commit 480559b

Please sign in to comment.