From ec784d969c8c81a0c14976977c43a8893ca44ab1 Mon Sep 17 00:00:00 2001 From: Christian Buck Date: Mon, 19 Mar 2012 17:35:17 +0000 Subject: [PATCH] updated typename --- moses/src/GlobalLexicalModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moses/src/GlobalLexicalModel.cpp b/moses/src/GlobalLexicalModel.cpp index b7dee453d..84b3a3838 100644 --- a/moses/src/GlobalLexicalModel.cpp +++ b/moses/src/GlobalLexicalModel.cpp @@ -152,7 +152,7 @@ float GlobalLexicalModel::ScorePhrase( const TargetPhrase& targetPhrase ) const float GlobalLexicalModel::GetFromCacheOrScorePhrase( const TargetPhrase& targetPhrase ) const { LexiconCache& m_cache = m_local->cache; - map< const TargetPhrase*, float >::const_iterator query = m_cache.find( &targetPhrase ); + const LexiconCache::const_iterator query = m_cache.find( &targetPhrase ); if ( query != m_cache.end() ) { return query->second; }