From 3fcf383763e80b90e30fa06b29e0751ca19ab983 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 19 Jul 2015 16:35:36 +0200 Subject: [PATCH] Makefiles: Remove valueless cast. --- Source/cmGlobalUnixMakefileGenerator3.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index b240924b6..d951c13e9 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -498,9 +498,7 @@ cmGlobalUnixMakefileGenerator3 for(std::vector::iterator sdi = lg->GetChildren().begin(); sdi != lg->GetChildren().end(); ++sdi) { - cmLocalUnixMakefileGenerator3* slg = - static_cast(*sdi); - std::string subdir = slg->GetMakefile()->GetCurrentBinaryDirectory(); + std::string subdir = (*sdi)->GetMakefile()->GetCurrentBinaryDirectory(); subdir += "/"; subdir += pass; depends.push_back(subdir);