From 8378763418a36a378f4a5faf7a9705e9b7951b1c Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 24 May 2012 14:46:57 +0300 Subject: [PATCH] Fix some debug print. --- indexer/classificator.cpp | 4 ++-- indexer/types_mapping.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/indexer/classificator.cpp b/indexer/classificator.cpp index e671978bc9..1666b22299 100644 --- a/indexer/classificator.cpp +++ b/indexer/classificator.cpp @@ -128,9 +128,9 @@ void ClassifObject::VisSavePolicy::Serialize(ostream & s) const void ClassifObject::VisLoadPolicy::Name(string const & name) const { - static_cast(name); + UNUSED_VALUE(name); // Assume that classificator doesn't changed for saved visibility. - ASSERT ( name == Current()->m_name, () ); + ASSERT_EQUAL ( name, Current()->m_name, () ); } void ClassifObject::VisLoadPolicy::Serialize(string const & s) diff --git a/indexer/types_mapping.cpp b/indexer/types_mapping.cpp index 539986b109..9f6ee1a54e 100644 --- a/indexer/types_mapping.cpp +++ b/indexer/types_mapping.cpp @@ -33,5 +33,5 @@ void IndexAndTypeMapping::Add(uint32_t ind, uint32_t type) ASSERT_EQUAL ( ind, m_types.size(), () ); m_types.push_back(type); - VERIFY ( m_map.insert(make_pair(type, ind)).second, (type, ind) ); + VERIFY ( m_map.insert(make_pair(type, ind)).second, (classif().GetFullObjectName(type), ind) ); }