Skip to content

Commit 3d9fd47

Browse files
committed
Ran clang-format.
1 parent 99b7208 commit 3d9fd47

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

include/vsg/io/Options.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ namespace vsg
4747

4848
Options& operator=(const Options& rhs) = delete;
4949

50-
5150
/// read command line options, assign values to this options object to later use with reading/writing files
5251
virtual bool readOptions(CommandLine& arguments);
5352

@@ -105,7 +104,6 @@ namespace vsg
105104
ref_ptr<PropagateDynamicObjects> propagateDynamicObjects;
106105

107106
public:
108-
109107
ref_ptr<Object> clone(const CopyOp& copyop = {}) const override { return Options::create(*this, copyop); }
110108
int compare(const Object& rhs) const override;
111109

include/vsg/io/stream.h

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,27 +285,31 @@ namespace vsg
285285
return output;
286286
}
287287

288-
289288
inline std::istream& operator>>(std::istream& input, CoordinateSpace& coordinateSpace)
290289
{
291290
std::string value;
292291
input >> value;
293292

294-
if (value == "LINEAR") coordinateSpace = CoordinateSpace::LINEAR;
295-
else if (value == "sRGB") coordinateSpace = CoordinateSpace::sRGB;
296-
else coordinateSpace = CoordinateSpace::NO_PREFERENCE;
293+
if (value == "LINEAR")
294+
coordinateSpace = CoordinateSpace::LINEAR;
295+
else if (value == "sRGB")
296+
coordinateSpace = CoordinateSpace::sRGB;
297+
else
298+
coordinateSpace = CoordinateSpace::NO_PREFERENCE;
297299

298300
return input;
299301
}
300302

301303
inline std::ostream& operator<<(std::ostream& output, const CoordinateSpace& coordinateSpace)
302304
{
303-
if (coordinateSpace==CoordinateSpace::LINEAR) output<<"LINEAR";
304-
else if (coordinateSpace==CoordinateSpace::sRGB) output<<"sRGB";
305-
else output<<"NO_PREFERENCE";
305+
if (coordinateSpace == CoordinateSpace::LINEAR)
306+
output << "LINEAR";
307+
else if (coordinateSpace == CoordinateSpace::sRGB)
308+
output << "sRGB";
309+
else
310+
output << "NO_PREFERENCE";
306311

307312
return output;
308313
}
309314

310-
311315
} // namespace vsg

src/vsg/utils/GraphicsPipelineConfigurator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ bool DescriptorConfigurator::assignTexture(const std::string& name, const ImageI
167167
// set up bindings
168168
if (!textureBinding.define.empty()) defines.insert(textureBinding.define);
169169

170-
for(auto& imageInfo : imageInfoList)
170+
for (auto& imageInfo : imageInfoList)
171171
{
172172
if (imageInfo->imageView && imageInfo->imageView->image)
173173
{

0 commit comments

Comments
 (0)