summaryrefslogtreecommitdiff
path: root/src/printer/ast
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-11-16 00:20:30 +0000
committerMorgan Deters <mdeters@gmail.com>2010-11-16 00:20:30 +0000
commitd5d504da7c73538642b9be86c73f8407e08ab57a (patch)
tree27eb4f4cd10c311a490e5fe2adf4a45aec54c18a /src/printer/ast
parent759e85ae22536844a8c37714676bf9a65d7cc2b5 (diff)
fix function signatures
Diffstat (limited to 'src/printer/ast')
-rw-r--r--src/printer/ast/ast_printer.cpp8
-rw-r--r--src/printer/ast/ast_printer.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/src/printer/ast/ast_printer.cpp b/src/printer/ast/ast_printer.cpp
index cd9b0cad5..6cdf878a0 100644
--- a/src/printer/ast/ast_printer.cpp
+++ b/src/printer/ast/ast_printer.cpp
@@ -28,12 +28,12 @@ namespace CVC4 {
namespace printer {
namespace ast {
-std::ostream& AstPrinter::toStream(std::ostream& out, TNode n,
+void AstPrinter::toStream(std::ostream& out, TNode n,
int toDepth, bool types) const {
// null
if(n.getKind() == kind::NULL_EXPR) {
out << "null";
- return out;
+ return;
}
// variable
@@ -55,7 +55,7 @@ std::ostream& AstPrinter::toStream(std::ostream& out, TNode n,
n.getType().toStream(out, -1, false, language::output::LANG_AST);
}
- return out;
+ return;
}
out << '(' << n.getKind();
@@ -90,8 +90,6 @@ std::ostream& AstPrinter::toStream(std::ostream& out, TNode n,
}
}
out << ')';
-
- return out;
}/* AstPrinter::toStream() */
}/* CVC4::printer::ast namespace */
diff --git a/src/printer/ast/ast_printer.h b/src/printer/ast/ast_printer.h
index 0851aef6c..f3d927cfb 100644
--- a/src/printer/ast/ast_printer.h
+++ b/src/printer/ast/ast_printer.h
@@ -31,7 +31,7 @@ namespace ast {
class AstPrinter : public CVC4::Printer {
public:
- std::ostream& toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
+ void toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
};/* class AstPrinter */
}/* CVC4::printer::ast namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback