]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Syntax.hpp
Fixed some compilation errors on Mac OS X.
[cycript.git] / ObjectiveC / Syntax.hpp
index f101858839721222a4071953d4d1ba566fb7d44b..f4101fb547783a585de01887b82bdf839ab87ff5 100644 (file)
@@ -49,7 +49,7 @@ struct CYSelectorPart :
     CYWord *name_;
     bool value_;
 
-    CYSelectorPart(CYWord *name, bool value, CYSelectorPart *next) :
+    CYSelectorPart(CYWord *name, bool value, CYSelectorPart *next = NULL) :
         CYNext<CYSelectorPart>(next),
         name_(name),
         value_(value)
@@ -136,6 +136,9 @@ struct CYClass {
     {
     }
 
+    virtual ~CYClass() {
+    }
+
     CYExpression *Replace_(CYContext &context);
     virtual void Output(CYOutput &out, CYFlags flags) const;
 };