Skip to content

Commit

Permalink
Remove default arguments on implementation class constructors
Browse files Browse the repository at this point in the history
These defaults are never used since they are always constructed with all arguments.
  • Loading branch information
asmaloney committed Jan 11, 2024
1 parent 4fba305 commit c5013bf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
5 changes: 2 additions & 3 deletions src/FloatNodeImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ namespace e57
class FloatNodeImpl : public NodeImpl
{
public:
explicit FloatNodeImpl( ImageFileImplWeakPtr destImageFile, double value = 0,
bool validValue = true, FloatPrecision precision = PrecisionDouble,
double minimum = DOUBLE_MIN, double maximum = DOUBLE_MAX );
explicit FloatNodeImpl( ImageFileImplWeakPtr destImageFile, double value, bool validValue,
FloatPrecision precision, double minimum, double maximum );
~FloatNodeImpl() override = default;

NodeType type() const override
Expand Down
4 changes: 2 additions & 2 deletions src/IntegerNodeImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ namespace e57
class IntegerNodeImpl : public NodeImpl
{
public:
explicit IntegerNodeImpl( ImageFileImplWeakPtr destImageFile, int64_t value = 0,
int64_t minimum = 0, int64_t maximum = 0 );
explicit IntegerNodeImpl( ImageFileImplWeakPtr destImageFile, int64_t value, int64_t minimum,
int64_t maximum );
~IntegerNodeImpl() override = default;

NodeType type() const override
Expand Down
12 changes: 6 additions & 6 deletions src/ScaledIntegerNodeImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ namespace e57
class ScaledIntegerNodeImpl : public NodeImpl
{
public:
explicit ScaledIntegerNodeImpl( ImageFileImplWeakPtr destImageFile, int64_t value = 0,
int64_t minimum = 0, int64_t maximum = 0, double scale = 1.0,
double offset = 0.0 );
explicit ScaledIntegerNodeImpl( ImageFileImplWeakPtr destImageFile, int64_t value,
int64_t minimum, int64_t maximum, double scale,
double offset );

explicit ScaledIntegerNodeImpl( ImageFileImplWeakPtr destImageFile, double scaledValue = 0.,
double scaledMinimum = 0., double scaledMaximum = 0.,
double scale = 1.0, double offset = 0.0 );
explicit ScaledIntegerNodeImpl( ImageFileImplWeakPtr destImageFile, double scaledValue,
double scaledMinimum, double scaledMaximum, double scale,
double offset );

~ScaledIntegerNodeImpl() override = default;

Expand Down
2 changes: 1 addition & 1 deletion src/SourceDestBufferImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace e57
{
public:
SourceDestBufferImpl( ImageFileImplWeakPtr destImageFile, const ustring &pathName,
size_t capacity, bool doConversion = false, bool doScaling = false );
size_t capacity, bool doConversion, bool doScaling );

template <typename T> void setTypeInfo( T *base, size_t stride = sizeof( T ) );

Expand Down
2 changes: 1 addition & 1 deletion src/StringNodeImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace e57
class StringNodeImpl : public NodeImpl
{
public:
explicit StringNodeImpl( ImageFileImplWeakPtr destImageFile, const ustring &value = "" );
explicit StringNodeImpl( ImageFileImplWeakPtr destImageFile, const ustring &value );
~StringNodeImpl() override = default;

NodeType type() const override
Expand Down

0 comments on commit c5013bf

Please sign in to comment.