forked from qt-creator/qt-creator
Fix krazy issues: Use explicit constructors
* Fix all warnings about non-explicit constructors except for those in 3rdparty code.
This commit is contained in:
@@ -64,7 +64,7 @@ namespace QmlJS { namespace AST {
|
||||
class SourceLocation
|
||||
{
|
||||
public:
|
||||
SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
|
||||
explicit SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0)
|
||||
: offset(offset), length(length),
|
||||
startLine(line), startColumn(column)
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user