mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 07:45:46 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -87,7 +87,7 @@ expr * simple_parser::parse_expr(scanner & s) {
|
|||
}
|
||||
throw parser_error();
|
||||
case scanner::RIGHT_PAREN:
|
||||
return 0;
|
||||
return nullptr;
|
||||
case scanner::ID_TOKEN:
|
||||
if (m_builtin.find(s.get_id(), op)) {
|
||||
expr * r = m_manager.mk_const(op.m_family_id, op.m_kind);
|
||||
|
@ -123,7 +123,7 @@ bool simple_parser::parse(std::istream & in, expr_ref & result) {
|
|||
return false;
|
||||
}
|
||||
m_exprs.reset();
|
||||
return result.get() != 0;
|
||||
return result.get() != nullptr;
|
||||
}
|
||||
|
||||
bool simple_parser::parse_string(char const * str, expr_ref & result) {
|
||||
|
@ -133,7 +133,7 @@ bool simple_parser::parse_string(char const * str, expr_ref & result) {
|
|||
}
|
||||
|
||||
bool simple_parser::parse_file(char const * file, expr_ref & result) {
|
||||
if (file != 0) {
|
||||
if (file != nullptr) {
|
||||
std::ifstream stream(file);
|
||||
if (!stream) {
|
||||
warning_msg("ERROR: could not open file '%s'.", file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue