aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-03 21:35:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-03 21:35:43 +0200
commitbbc39ffe31c67506b4c03fc56fa3adcb925b6325 (patch)
treecdc3e2bb6f66edab684ee184a28c35727246f448 /odb/validator.cxx
parentf0bbc17aeed1b636782a4b92e8191d90f310d0a2 (diff)
Remove gratuitous classes
In the process also get rid of global class processor which conflicts with enum processor on MIPS.
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r--odb/validator.cxx13
1 files changed, 6 insertions, 7 deletions
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<context> 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;