From: Jay Freeman (saurik) Date: Mon, 12 Jul 2010 01:41:45 +0000 (+0000) Subject: Simplified CYDeclarations::Replace, which should really be rehauled anyway. X-Git-Tag: v0.9.432~15 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/aeb295b7e75208d59fe2a3f9bafb04403e6bca4d Simplified CYDeclarations::Replace, which should really be rehauled anyway. --- diff --git a/Replace.cpp b/Replace.cpp index b804ce3..8023bdb 100644 --- a/Replace.cpp +++ b/Replace.cpp @@ -213,15 +213,7 @@ CYProperty *CYDeclarations::Property(CYContext &context) { $T(NULL) } CYCompound *CYDeclarations::Replace(CYContext &context) { - CYCompound *compound; - if (next_ == NULL) compound: - compound = $ CYCompound(); - else { - compound = next_->Replace(context); - if (compound == NULL) - goto compound; - } - + CYCompound *compound(next_ == NULL ? $ CYCompound() : next_->Replace(context)); if (CYAssignment *assignment = declaration_->Assignment(context)) compound->AddPrev(assignment); return compound;