[niepce] check_property_type() should return true if we don't know what the type should be.
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce] check_property_type() should return true if we don't know what the type should be.
- Date: Sun, 23 Jun 2013 21:14:28 +0000 (UTC)
commit d74eb68868ab7e54f07494a67e9988f2a8188adb
Author: Hubert Figuière <hub figuiere net>
Date: Thu Jun 20 22:23:27 2013 -0400
check_property_type() should return true if we don't know what the type
should be.
src/engine/db/properties.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/db/properties.cpp b/src/engine/db/properties.cpp
index c140067..e5e9bcd 100644
--- a/src/engine/db/properties.cpp
+++ b/src/engine/db/properties.cpp
@@ -68,7 +68,8 @@ bool check_property_type(fwk::PropertyIndex idx, const std::type_info & ti)
if(iter != propmap.end()) {
return iter->second->type == ti;
}
- return false;
+ // we don't know the type. Assume it is OK
+ return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]