Debugging and test suites of FullState and DiffState
Digest checking is still missing from unit tests
diff --git a/model/sync-std-name-info.cc b/model/sync-std-name-info.cc
index 5b57fbe..53fcdac 100644
--- a/model/sync-std-name-info.cc
+++ b/model/sync-std-name-info.cc
@@ -54,15 +54,13 @@
bool
StdNameInfo::operator == (const NameInfo &info) const
{
- try
- {
- return m_name == dynamic_cast<const StdNameInfo&> (info).m_name;
- }
- catch (...)
- {
- return false;
- }
+ return m_name == dynamic_cast<const StdNameInfo&> (info).m_name;
+}
+
+bool
+StdNameInfo::operator < (const NameInfo &info) const
+{
+ return m_name < dynamic_cast<const StdNameInfo&> (info).m_name;
}
} // Sync
-