From ce04216289985021ce53588e3040e2ac9d6a2a0d Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Wed, 20 Apr 2011 07:57:28 +0000 Subject: Minor mixed-bag commit. Expected performance impact negligible. * Fixed hole in arrays typechecking. * Fixed "make dist". * Better ouroborous test, and some printer fixes. * Continued cleanup in CVC parser, removed some warnings. * Better output. --- src/expr/expr_template.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/expr/expr_template.cpp') diff --git a/src/expr/expr_template.cpp b/src/expr/expr_template.cpp index 51a734757..74bfd3f2b 100644 --- a/src/expr/expr_template.cpp +++ b/src/expr/expr_template.cpp @@ -72,10 +72,8 @@ TypeCheckingException::~TypeCheckingException() throw () { delete d_expr; } -std::string TypeCheckingException::toString() const { - std::stringstream ss; - ss << "Error type-checking " << d_expr << ": " << d_msg << std::endl << *d_expr; - return ss.str(); +void TypeCheckingException::toStream(std::ostream& os) const { + os << "Error type-checking " << d_expr << ": " << d_msg << std::endl << *d_expr; } Expr TypeCheckingException::getExpression() const { -- cgit v1.2.3