fix sloppy test for private protection

This commit is contained in:
Basile Burg 2017-01-17 12:08:35 +01:00
parent 437b8e169d
commit 2b8ba6ffca
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 2 additions and 4 deletions

View File

@ -152,9 +152,7 @@ public:
.empty; .empty;
bool isPrivate; bool isPrivate;
if (_private[$-1] && isPrivateOnce) if (isPrivateOnce)
isPrivate = true;
else if (!_private[$-1] && isPrivateOnce)
isPrivate = true; isPrivate = true;
else if (_private[$-1] && !changeProtectionOnce) else if (_private[$-1] && !changeProtectionOnce)
isPrivate = true; isPrivate = true;