From 2baca75e2ba4357e9a20a7afe6a742bfea7be561 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 1 May 2013 23:13:30 -0400 Subject: [PATCH] Keep the comment...updated? Should we just remove this? --- src/ScreenOptionsExportPackage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ScreenOptionsExportPackage.cpp b/src/ScreenOptionsExportPackage.cpp index 2802a82bab..829f2d38f7 100644 --- a/src/ScreenOptionsExportPackage.cpp +++ b/src/ScreenOptionsExportPackage.cpp @@ -221,11 +221,11 @@ static bool ExportPackage( RString sPackageName, RString sDirToExport, RString & GetDirListingRecursive( sDirToExport, "*", vs ); SMPackageUtil::StripIgnoredSmzipFiles( vs ); LOG->Trace("Adding files..."); - FOREACH( RString, vs, s ) + for (RString &s : vs) { - if( !zip.AddFile( *s ) ) + if( !zip.AddFile( s ) ) { - sErrorOut = ssprintf( "Couldn't add file: %s", s->c_str() ); + sErrorOut = ssprintf( "Couldn't add file: %s", s.c_str() ); return false; } }