From 830fda7a3d6cdd0ab0679252e542f13d488a784d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 1 Jul 2010 23:32:03 +0000 Subject: [PATCH] Quick output fix for optional arguments (CYPA and spacing). --- Output.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Output.cpp b/Output.cpp index 8b77e0e..989781a 100644 --- a/Output.cpp +++ b/Output.cpp @@ -561,7 +561,8 @@ void CYObject::Output(CYOutput &out, CYFlags flags) const { } void CYOptionalFunctionParameter::Output(CYOutput &out) const { - out << *name_ << '=' << *initializer_; + out << *name_ << ' ' << '=' << ' '; + initializer_->Output(out, CYPA, CYNoFlags); if (next_ != NULL) out << ',' << ' ' << *next_; } -- 2.45.2