rtti: make Nail constructor explicit
This commit is contained in:
parent
5de6b902c9
commit
d08cb5c79c
1 changed files with 1 additions and 1 deletions
2
rtti.cpp
2
rtti.cpp
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
class Nail {
|
class Nail {
|
||||||
public:
|
public:
|
||||||
Nail(float length)
|
explicit Nail(float length)
|
||||||
: length(length) {}
|
: length(length) {}
|
||||||
|
|
||||||
float getLength() {
|
float getLength() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue