Commit 0cf7dbd8 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

simplify copy c'tor

parent 63d5dbd9
......@@ -81,9 +81,7 @@ public:
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment