From bbc39ffe31c67506b4c03fc56fa3adcb925b6325 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 3 Jun 2015 21:35:43 +0200 Subject: Remove gratuitous classes In the process also get rid of global class processor which conflicts with enum processor on MIPS. --- odb/validator.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'odb/validator.cxx') diff --git a/odb/validator.cxx b/odb/validator.cxx index 8afdeb3..938ce7d 100644 --- a/odb/validator.cxx +++ b/odb/validator.cxx @@ -1471,7 +1471,7 @@ namespace }; } -void validator:: +void validate (options const& ops, features& f, semantics::unit& u, @@ -1520,7 +1520,7 @@ validate (options const& ops, } if (!valid) - throw failed (); + throw validator_failed (); auto_ptr ctx (create_context (cerr, u, ops, f, 0)); @@ -1573,7 +1573,7 @@ validate (options const& ops, } if (!valid) - throw failed (); + throw validator_failed (); switch (db) { @@ -1589,12 +1589,11 @@ validate (options const& ops, { try { - relational::validator v; - v.validate (ops, f, u, p, pass); + relational::validate (ops, f, u, p, pass); } - catch (relational::validator::failed const&) + catch (operation_failed const&) { - throw failed (); + throw validator_failed (); } break; -- cgit v1.1