From bb4aa53773bda2df3101085594d6de70c7b463d8 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 17 Dec 2013 23:30:27 +0000 Subject: [PATCH] Minor clean-up. --- .../Source/Project Saving/jucer_ProjectExport_MSVC.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index 53281e347d..11ac70e684 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -216,11 +216,6 @@ protected: return new MSVCBuildConfiguration (project, v); } - static int getWarningLevel (const BuildConfiguration& config) - { - return dynamic_cast (config).getWarningLevel(); - } - //============================================================================== String getConfigTargetPath (const BuildConfiguration& config) const { @@ -775,7 +770,7 @@ protected: compiler->setAttribute ("AssemblerListingLocation", "$(IntDir)\\"); compiler->setAttribute ("ObjectFile", "$(IntDir)\\"); compiler->setAttribute ("ProgramDataBaseFileName", "$(IntDir)\\"); - compiler->setAttribute ("WarningLevel", String (getWarningLevel (config))); + compiler->setAttribute ("WarningLevel", String (config.getWarningLevel())); compiler->setAttribute ("SuppressStartupBanner", "true"); const String extraFlags (replacePreprocessorTokens (config, getExtraCompilerFlagsString()).trim()); @@ -1211,7 +1206,7 @@ protected: cl->createNewChildElement ("AssemblerListingLocation")->addTextElement ("$(IntDir)\\"); cl->createNewChildElement ("ObjectFileName")->addTextElement ("$(IntDir)\\"); cl->createNewChildElement ("ProgramDataBaseFileName")->addTextElement ("$(IntDir)\\"); - cl->createNewChildElement ("WarningLevel")->addTextElement ("Level" + String (getWarningLevel (config))); + cl->createNewChildElement ("WarningLevel")->addTextElement ("Level" + String (config.getWarningLevel())); cl->createNewChildElement ("SuppressStartupBanner")->addTextElement ("true"); cl->createNewChildElement ("MultiProcessorCompilation")->addTextElement ("true");