From d780414989ef7e101cdaf269d4b01003d0721e6a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 11 Sep 2011 11:06:34 +0200 Subject: Generalize pragma code to support arbitrary types for context values --- odb/validator.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'odb/validator.cxx') diff --git a/odb/validator.cxx b/odb/validator.cxx index 0494741..bf7784e 100644 --- a/odb/validator.cxx +++ b/odb/validator.cxx @@ -24,16 +24,16 @@ namespace if (n.count (p + "null") && n.count (p + "not-null")) { - if (n.get (p + "null-loc") < - n.get (p + "not-null-loc")) + if (n.get (p + "null-location") < + n.get (p + "not-null-location")) { n.remove (p + "null"); - n.remove (p + "null-loc"); + n.remove (p + "null-location"); } else { n.remove (p + "not-null"); - n.remove (p + "not-null-loc"); + n.remove (p + "not-null-location"); } } } @@ -334,7 +334,7 @@ namespace valid_ = false; } else - id->set ("not-null", string ()); + id->set ("not-null", true); } // Check members. -- cgit v1.1