aboutsummaryrefslogtreecommitdiff
path: root/odb/processor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/processor.cxx')
-rw-r--r--odb/processor.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/odb/processor.cxx b/odb/processor.cxx
index ee143e2..c281706 100644
--- a/odb/processor.cxx
+++ b/odb/processor.cxx
@@ -143,8 +143,7 @@ namespace
// auto_ptr<const T> - can modify by setting a new pointer
// const auto_ptr<T> - can modify by changing the pointed-to value
//
- if (const_type (m.type ()) &&
- !(id (m) || version (m) || m.count ("inverse")))
+ if (const_member (m) && !(id (m) || version (m) || m.count ("inverse")))
{
if (qwt == 0 || const_type (*qwt))
m.set ("readonly", true);