X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b3378a02d0a811be38e530933fb9a57a3012a823..210e14b3fd3765a57e5f151c159c2ad921dadc98:/ObjectiveC/Replace.cpp diff --git a/ObjectiveC/Replace.cpp b/ObjectiveC/Replace.cpp index 35389b9..67a2ef6 100644 --- a/ObjectiveC/Replace.cpp +++ b/ObjectiveC/Replace.cpp @@ -119,7 +119,7 @@ CYExpression *CYSelector::Replace(CYContext &context) { CYString *CYSelectorPart::Replace(CYContext &context) { std::ostringstream str; - for (const CYSelectorPart *part(this); part != NULL; part = part->next_) { + CYForEach (part, this) { if (part->name_ != NULL) str << part->name_->Word(); if (part->value_) @@ -154,5 +154,5 @@ CYExpression *CYSendDirect::Replace(CYContext &context) { } CYExpression *CYSendSuper::Replace(CYContext &context) { - return $ CYSendDirect($V("cyr"), arguments_); + return $ CYSendDirect($V("$cyr"), arguments_); }