diff options
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/win32/ooofilereader/simpletag.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/source/win32/ooofilereader/simpletag.cxx b/shell/source/win32/ooofilereader/simpletag.cxx index 82b85aec5ce3..d4ceab77fe10 100644 --- a/shell/source/win32/ooofilereader/simpletag.cxx +++ b/shell/source/win32/ooofilereader/simpletag.cxx @@ -48,10 +48,11 @@ std::wstring CSimpleTag::getTagContent( ) ::std::wstring CSimpleTag::getTagAttribute( ::std::wstring const & attrname ) { - if ( m_SimpleAttributes.find(attrname) != m_SimpleAttributes.end()) - return m_SimpleAttributes[attrname]; + auto it = m_SimpleAttributes.find(attrname); + if ( it != m_SimpleAttributes.end()) + return it->second; else - return ( ::std::wstring( EMPTY_STRING ) ); + return ::std::wstring( EMPTY_STRING ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |