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:
@@ -41,9 +41,9 @@ class CPLUSPLUS_EXPORT BackwardsScanner
|
||||
enum { MAX_BLOCK_COUNT = 10 };
|
||||
|
||||
public:
|
||||
BackwardsScanner(const QTextCursor &cursor,
|
||||
int maxBlockCount = MAX_BLOCK_COUNT,
|
||||
const QString &suffix = QString());
|
||||
explicit BackwardsScanner(const QTextCursor &cursor,
|
||||
int maxBlockCount = MAX_BLOCK_COUNT,
|
||||
const QString &suffix = QString());
|
||||
|
||||
int startToken() const;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class CPLUSPLUS_EXPORT MacroArgumentReference
|
||||
unsigned _length;
|
||||
|
||||
public:
|
||||
MacroArgumentReference(unsigned position = 0, unsigned length = 0)
|
||||
explicit MacroArgumentReference(unsigned position = 0, unsigned length = 0)
|
||||
: _position(position), _length(length)
|
||||
{ }
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ class MacroExpander
|
||||
const QByteArray *resolve_formal(const QByteArray &name);
|
||||
|
||||
public:
|
||||
MacroExpander(Environment *env, pp_frame *frame = 0, Client *client = 0, unsigned start_offset = 0);
|
||||
explicit MacroExpander(Environment *env, pp_frame *frame = 0, Client *client = 0, unsigned start_offset = 0);
|
||||
|
||||
const char *operator()(const char *first, const char *last,
|
||||
QByteArray *result);
|
||||
|
||||
Reference in New Issue
Block a user