Fix krazy issues: Use explicit constructors

* Fix all warnings about non-explicit constructors except for those
   in 3rdparty code.
This commit is contained in:
Tobias Hunger
2010-08-26 18:35:30 +02:00
parent 8d188d0104
commit 715796b48a
63 changed files with 77 additions and 77 deletions

View File

@@ -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;

View File

@@ -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)
{ }

View File

@@ -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);