Skip to content

Commit 24e7b45

Browse files
Leengithjmjohnson
authored andcommitted
STYLE: Removing extraneous colons from '::itk' and '::std'.
fgrep -Rl ::itk | egrep '\.(h|c)(xx|pp)?$' | fgrep -v ThirdParty | xargs sed -i -e 's/::itk\(::[A-Za-z_]\+\)/itk\1/g' fgrep -Rl ::std | egrep '\.(h|c)(xx|pp)?$' | fgrep -v ThirdParty | xargs sed -i -e 's/::std\(::[A-Za-z_]\+\)/std\1/g'
1 parent 0401269 commit 24e7b45

File tree

153 files changed

+475
-475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+475
-475
lines changed

Examples/Iterators/ImageRandomConstIteratorWithIndex.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ main(int argc, char * argv[])
101101

102102
// Software Guide : BeginCodeSnippet
103103
ConstIteratorType inputIt(inputImage, inputImage->GetRequestedRegion());
104-
inputIt.SetNumberOfSamples(::std::stoi(argv[2]));
104+
inputIt.SetNumberOfSamples(std::stoi(argv[2]));
105105
inputIt.ReinitializeSeed();
106106
// Software Guide : EndCodeSnippet
107107

@@ -118,7 +118,7 @@ main(int argc, char * argv[])
118118
{
119119
mean += static_cast<float>(inputIt.Get());
120120
}
121-
mean = mean / ::std::stod(argv[2]);
121+
mean = mean / std::stod(argv[2]);
122122

123123
// Software Guide : EndCodeSnippet
124124
std::cout << "Mean estimate with " << argv[2] << " samples is " << mean

Examples/Iterators/ImageRegionIterator.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ main(int argc, char * argv[])
9898
ImageType::RegionType::IndexType inputStart;
9999
ImageType::RegionType::SizeType size;
100100

101-
inputStart[0] = ::std::stoi(argv[3]);
102-
inputStart[1] = ::std::stoi(argv[4]);
101+
inputStart[0] = std::stoi(argv[3]);
102+
inputStart[1] = std::stoi(argv[4]);
103103

104-
size[0] = ::std::stoi(argv[5]);
105-
size[1] = ::std::stoi(argv[6]);
104+
size[0] = std::stoi(argv[5]);
105+
size[1] = std::stoi(argv[6]);
106106

107107
inputRegion.SetSize(size);
108108
inputRegion.SetIndex(inputStart);

Examples/Iterators/ImageSliceIteratorWithIndex.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ main(int argc, char * argv[])
173173
// Software Guide : EndLatex
174174

175175
// Software Guide : BeginCodeSnippet
176-
auto projectionDirection = static_cast<unsigned int>(::std::stoi(argv[3]));
176+
auto projectionDirection = static_cast<unsigned int>(std::stoi(argv[3]));
177177

178178
unsigned int i, j;
179179
unsigned int direction[2];

Examples/Iterators/NeighborhoodIterators2.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ main(int argc, char ** argv)
110110

111111
// Software Guide : BeginCodeSnippet
112112
itk::SobelOperator<PixelType, 2> sobelOperator;
113-
sobelOperator.SetDirection(::std::stoi(argv[3]));
113+
sobelOperator.SetDirection(std::stoi(argv[3]));
114114
sobelOperator.CreateDirectional();
115115
// Software Guide : EndCodeSnippet
116116

Examples/Iterators/NeighborhoodIterators3.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ main(int argc, char ** argv)
9595
output->Allocate();
9696

9797
itk::SobelOperator<PixelType, 2> sobelOperator;
98-
sobelOperator.SetDirection(::std::stoi(argv[3]));
98+
sobelOperator.SetDirection(std::stoi(argv[3]));
9999
sobelOperator.CreateDirectional();
100100

101101
itk::NeighborhoodInnerProduct<ImageType> innerProduct;

Examples/Iterators/NeighborhoodIterators4.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ main(int argc, char ** argv)
124124

125125
// Software Guide : BeginCodeSnippet
126126
itk::GaussianOperator<PixelType, 2> gaussianOperator;
127-
gaussianOperator.SetVariance(::std::stod(argv[3]) * ::std::stod(argv[3]));
127+
gaussianOperator.SetVariance(std::stod(argv[3]) * std::stod(argv[3]));
128128
// Software Guide : EndCodeSnippet
129129

130130
// Software Guide : BeginLatex

Examples/Iterators/NeighborhoodIterators5.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ main(int argc, char ** argv)
115115
// Software Guide : BeginCodeSnippet
116116
itk::GaussianOperator<PixelType, 2> gaussianOperator;
117117
gaussianOperator.SetDirection(0);
118-
gaussianOperator.SetVariance(::std::stod(argv[3]) * ::std::stod(argv[3]));
118+
gaussianOperator.SetVariance(std::stod(argv[3]) * std::stod(argv[3]));
119119
gaussianOperator.CreateDirectional();
120120
// Software Guide : EndCodeSnippet
121121

Examples/Iterators/NeighborhoodIterators6.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ main(int argc, char ** argv)
132132

133133
// Software Guide : BeginCodeSnippet
134134
ImageType::IndexType index;
135-
index[0] = ::std::stoi(argv[2]);
136-
index[1] = ::std::stoi(argv[3]);
135+
index[0] = std::stoi(argv[2]);
136+
index[1] = std::stoi(argv[3]);
137137
// Software Guide : EndCodeSnippet
138138

139139
// Software Guide : BeginLatex

Examples/Iterators/ShapedNeighborhoodIterators1.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ main(int argc, char ** argv)
110110
// Software Guide : EndLatex
111111

112112
// Software Guide : BeginCodeSnippet
113-
unsigned int element_radius = ::std::stoi(argv[3]);
113+
unsigned int element_radius = std::stoi(argv[3]);
114114
ShapedNeighborhoodIteratorType::RadiusType radius;
115115
radius.Fill(element_radius);
116116
// Software Guide : EndCodeSnippet

Examples/Iterators/ShapedNeighborhoodIterators2.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ main(int argc, char ** argv)
5252
ReaderType::Pointer reader = ReaderType::New();
5353
reader->SetFileName(argv[1]);
5454

55-
unsigned int element_radius = ::std::stoi(argv[3]);
55+
unsigned int element_radius = std::stoi(argv[3]);
5656

5757
try
5858
{

0 commit comments

Comments
 (0)