]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Replace.cpp
More consistent Trampoline error handling.
[cycript.git] / ObjectiveC / Replace.cpp
index 35389b9086b84f4832c6c0f68c415742b4e06e54..67a2ef602dd85411b3f2ddb91f4fb3b6cc91f701 100644 (file)
@@ -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_);
 }