Declare constructor KBlocksPiece(PieceInterface *p) explicit
Constructors with one argument should be declared explicit. Here, the constructor behaves similar to a copy constructor, but it is none. The implicit conversion was used one. I made it explicit.
parent
cbb2c083
Please register or sign in to comment