Skip to content

Commit b5b7661

Browse files
committed
Use proper return type & fix assignment readability
1 parent a8a0843 commit b5b7661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ReaderImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ namespace e57
414414
{
415415
if ( ( imageIndex < 0 ) || ( imageIndex >= images2D_.childCount() ) )
416416
{
417-
return 0;
417+
return false;
418418
}
419419

420420
imageProjection = E57_NO_PROJECTION;
@@ -1297,7 +1297,7 @@ namespace e57
12971297
{
12981298
ustring name = proto.get( protoIndex ).elementName();
12991299
NodeType type = proto.get( protoIndex ).type();
1300-
bool scaled = type == E57_SCALED_INTEGER ? true : false;
1300+
bool scaled = (type == E57_SCALED_INTEGER);
13011301
// E57_EXT_surface_normals
13021302
ustring norExtUri;
13031303
bool haveNormalsExt = imf_.extensionsLookupPrefix( "nor", norExtUri );

0 commit comments

Comments
 (0)