diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-31 14:00:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-31 14:00:18 +0200 |
commit | 130d691d607f2ff78865cc84b6fe46a7e79daa9a (patch) | |
tree | 4c164746d2f52a462e98f4cf98d1863bf781ebc0 /odb/relational/type-processor.cxx | |
parent | 1f7f9295bf4baf2b86ef5884b1c9929d0b31f758 (diff) |
Cosmetic changes and cleanups
Rename some functions to have consistent names. Add object() predicate.
Diffstat (limited to 'odb/relational/type-processor.cxx')
-rw-r--r-- | odb/relational/type-processor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/relational/type-processor.cxx b/odb/relational/type-processor.cxx index e53126f..6a5d974 100644 --- a/odb/relational/type-processor.cxx +++ b/odb/relational/type-processor.cxx @@ -696,7 +696,7 @@ namespace relational c = dynamic_cast<class_*> (unit.find (tn)); - if (c == 0 || !c->count ("object")) + if (c == 0 || !object (*c)) return 0; t.set ("element-type", c); @@ -1087,7 +1087,7 @@ namespace relational virtual void traverse (type& c) { - bool obj (c.count ("object")); + bool obj (object (c)); if (!(obj || comp_value (c))) return; |