From 0cf7dbd816e56d40a70c58abe8ecd9ebca5e6747 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 4 Apr 2011 18:17:08 +0200 Subject: [PATCH] simplify copy c'tor --- src/shared/proparser/profileparser.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shared/proparser/profileparser.h b/src/shared/proparser/profileparser.h index 304ebff55eb..568896bae2d 100644 --- a/src/shared/proparser/profileparser.h +++ b/src/shared/proparser/profileparser.h @@ -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