diff --git a/src/RageUtil.cpp b/src/RageUtil.cpp index d3bdf32c9a..95c548a22d 100644 --- a/src/RageUtil.cpp +++ b/src/RageUtil.cpp @@ -1890,8 +1890,8 @@ void ReplaceEntityText( RString &sText, const map &m ) { RString sFind; - FOREACHM_CONST( char, RString, m, c ) - sFind.append( 1, c->first ); + for (std::pair const &c : m) + sFind.append( 1, c.first ); RString sRet;