Integrate C++11 branch into 5_1-new

This commit is contained in:
teejusb
2019-06-22 12:35:38 -07:00
444 changed files with 19503 additions and 21007 deletions
+3 -4
View File
@@ -3,7 +3,6 @@
#include "RageUtil.h"
#include "RageFile.h"
#include "RageLog.h"
#include "Foreach.h"
CsvFile::CsvFile()
{
@@ -114,15 +113,15 @@ bool CsvFile::WriteFile( const RString &sPath ) const
bool CsvFile::WriteFile( RageFileBasic &f ) const
{
FOREACH_CONST( StringVector, m_vvs, line )
for (StringVector const &line : m_vvs)
{
RString sLine;
FOREACH_CONST( RString, *line, value )
for (auto value = line.begin(); value != line.end(); ++value)
{
RString sVal = *value;
sVal.Replace( "\"", "\"\"" ); // escape quotes to double-quotes
sLine += "\"" + sVal + "\"";
if( value != line->end()-1 )
if( value != line.end()-1 )
sLine += ",";
}
if( f.PutLine(sLine) == -1 )