Browse Source

run_compile_commands: Avoid shadow in std::map<>::at workaround

The map has a member called "empty" so use a different name for the
local variable in our approximate at() method.
Brad King 14 years ago
parent
commit
7c5be5114c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Tests/CMakeLib/run_compile_commands.cxx

+ 2 - 2
Tests/CMakeLib/run_compile_commands.cxx

@@ -9,8 +9,8 @@ public:
       {
       const_iterator i = this->find(k);
       if(i != this->end()) { return i->second; }
-      static cmStdString empty;
-      return empty;
+      static cmStdString emptyString;
+      return emptyString;
       }
   };
   typedef std::vector<CommandType> TranslationUnitsType;