aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-31 14:00:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-31 14:00:18 +0200
commit130d691d607f2ff78865cc84b6fe46a7e79daa9a (patch)
tree4c164746d2f52a462e98f4cf98d1863bf781ebc0 /odb/validator.cxx
parent1f7f9295bf4baf2b86ef5884b1c9929d0b31f758 (diff)
Cosmetic changes and cleanups
Rename some functions to have consistent names. Add object() predicate.
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r--odb/validator.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx
index 790a991..a3b0348 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -94,7 +94,7 @@ namespace
//
if (object_)
{
- if (!c.count ("object"))
+ if (!context::object (c))
return;
}
else
@@ -176,12 +176,12 @@ namespace
virtual void
traverse (type& c)
{
- if (c.count ("object"))
+ if (context::object (c))
traverse_object (c);
else
{
if (context::comp_value (c))
- traverse_value (c);
+ traverse_composite (c);
vt_.dispatch (c);
}
@@ -239,7 +239,7 @@ namespace
{
type& b (i->base ());
- if (b.count ("object"))
+ if (context::object (b))
base = true;
if (context::comp_value (b))
{
@@ -328,7 +328,7 @@ namespace
}
virtual void
- traverse_value (type& c)
+ traverse_composite (type& c)
{
bool base (false);
@@ -340,7 +340,7 @@ namespace
if (context::comp_value (b))
base = true;
- else if (b.count ("object"))
+ else if (context::object (b))
{
// @@ Should we use hint here?
//