Răsfoiți Sursa

BUG: const char* FilePath could point to a non-existent std::string for
commands used in a macro, using a std::string instead copies the contents so
this works (correct error message)

Alex

Alexander Neundorf 18 ani în urmă
părinte
comite
cd0cd47416
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Source/cmListFileCache.h

+ 1 - 1
Source/cmListFileCache.h

@@ -52,7 +52,7 @@ struct cmListFileFunction
 {
   std::string Name;
   std::vector<cmListFileArgument> Arguments;
-  const char* FilePath;
+  std::string FilePath;
   long Line;
 };