Index: src/ch/TCommandLineParser.cpp =================================================================== diff -u -r0cd863a6e51b221c4f7bf6e7b83ddfc43a5d433f -r358a488269fd82d5d2566c407b95c4d519c5065e --- src/ch/TCommandLineParser.cpp (.../TCommandLineParser.cpp) (revision 0cd863a6e51b221c4f7bf6e7b83ddfc43a5d433f) +++ src/ch/TCommandLineParser.cpp (.../TCommandLineParser.cpp) (revision 358a488269fd82d5d2566c407b95c4d519c5065e) @@ -64,11 +64,10 @@ { vPaths.Clear(); - std::vector vValues; if(HasTaskDefinitionPath()) { - vValues = m_mapVariables["ImportTaskDefinition"].as >(); - BOOST_FOREACH(std::wstring& strPath, vValues) + const std::vector& rvValues = m_mapVariables["ImportTaskDefinition"].as >(); + BOOST_FOREACH(const std::wstring& strPath, rvValues) { vPaths.Add(chcore::PathFromString(strPath.c_str())); } Index: src/ch/TCommandLineParser.h =================================================================== diff -u -r0cd863a6e51b221c4f7bf6e7b83ddfc43a5d433f -r358a488269fd82d5d2566c407b95c4d519c5065e --- src/ch/TCommandLineParser.h (.../TCommandLineParser.h) (revision 0cd863a6e51b221c4f7bf6e7b83ddfc43a5d433f) +++ src/ch/TCommandLineParser.h (.../TCommandLineParser.h) (revision 358a488269fd82d5d2566c407b95c4d519c5065e) @@ -23,7 +23,10 @@ #ifndef __TCOMMANDLINEPARSER_H__ #define __TCOMMANDLINEPARSER_H__ -#include +#pragma warning(push) +#pragma warning(disable:4100) + #include +#pragma warning(pop) namespace chcore { class TPathContainer; }