summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-12-19 13:18:04 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-12-19 13:19:39 -0500
commit1b069faf43cd69b8c27afb372c47fe2b6abf9101 (patch)
tree81d5cdfd5b2fe451dd8c8b7338464a5346738200
parentf045343ed4d1f0ab8d289297cae7cf296b773f53 (diff)
downloadorcus-0.3.tar.gz
Destructors shouldn't throw. Let's use assert() here. orcus-0.3
-rw-r--r--src/liborcus/xml_map_tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liborcus/xml_map_tree.cpp b/src/liborcus/xml_map_tree.cpp
index a32c9ffb..0ec8f34c 100644
--- a/src/liborcus/xml_map_tree.cpp
+++ b/src/liborcus/xml_map_tree.cpp
@@ -210,7 +210,7 @@ xml_map_tree::attribute::~attribute()
delete field_ref;
break;
default:
- throw general_error("unexpected reference type in the destructor of attribute.");
+ assert(!"unexpected reference type in the destructor of attribute.");
}
}
@@ -261,7 +261,7 @@ xml_map_tree::element::~element()
delete field_ref;
break;
default:
- throw general_error("unexpected reference type in the destructor of element.");
+ assert(!"unexpected reference type in the destructor of element.");
}
}