src/Generic/edt/AbbrevTable.cpp
// Reset dynamic table when we begin a new document; the previous document's context is obviously no longer helpful

Reset dynamic table when we begin a new document; the previous document's context is obviously no longer helpful
Reset dynamic table when we begin a new document ; the previous document ' s context is obviously no longer helpful
void AbbrevTable::cleanUpAfterDocument() {
	if (!is_initialized) {
		throw InternalInconsistencyException("AbbrevTable::cleanUpAfterDocument()",
											 "AbbrevTable has not been initialized.");
	}
	SymbolArraySymbolArrayMap::iterator iter;
	for (iter = _table[DYNAMIC]->begin();
		 iter != _table[DYNAMIC]->end();
		 ++iter)
	{
		delete (*iter).first;
		delete (*iter).second;
	}
	_table[DYNAMIC]->clear();
}
void AbbrevTable :: cleanUpAfterDocument ( ) { if ( ! is_initialized ) { throw InternalInconsistencyException ( " " , " " ) ; } SymbolArraySymbolArrayMap :: iterator iter ; for ( iter = _table [ DYNAMIC ] -> begin ( ) ; iter != _table [ DYNAMIC ] -> end ( ) ; ++ iter ) { delete ( * iter ) . first ; delete ( * iter ) . second ; } _table [ DYNAMIC ] -> clear ( ) ; }
Reset dynamic table when we begin a new document; the previous document's context is obviously no longer helpful
Reset dynamic table when we begin a new document ; the previous document ' s context is obviously no longer helpful