forked from qt-creator/qt-creator
simplify copy c'tor
This commit is contained in:
@@ -81,9 +81,7 @@ public:
|
||||
private:
|
||||
struct BlockScope {
|
||||
BlockScope() : start(0), braceLevel(0), special(false), inBranch(false) {}
|
||||
BlockScope(BlockScope &other) :
|
||||
start(other.start), braceLevel(other.braceLevel),
|
||||
special(other.special), inBranch(other.inBranch) {}
|
||||
BlockScope(const BlockScope &other) { *this = other; }
|
||||
ushort *start; // Where this block started; store length here
|
||||
int braceLevel; // Nesting of braces in scope
|
||||
bool special; // Single-line conditionals inside loops, etc. cannot have else branches
|
||||
|
||||
Reference in New Issue
Block a user