Pārlūkot izejas kodu

Make the cmStrictTargetComparison operate on const cmTarget*.

Stephen Kelly 12 gadi atpakaļ
vecāks
revīzija
259bf0918c
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 2 1
      Source/cmGeneratorTarget.cxx
  2. 1 1
      Source/cmGeneratorTarget.h

+ 2 - 1
Source/cmGeneratorTarget.cxx

@@ -693,7 +693,8 @@ void cmGeneratorTarget::GenerateTargetManifest(const char* config) const
     }
 }
 
-bool cmStrictTargetComparison::operator()(cmTarget *t1, cmTarget *t2) const
+bool cmStrictTargetComparison::operator()(cmTarget const* t1,
+                                          cmTarget const* t2) const
 {
   int nameResult = strcmp(t1->GetName(), t2->GetName());
   if (nameResult == 0)

+ 1 - 1
Source/cmGeneratorTarget.h

@@ -101,7 +101,7 @@ private:
 };
 
 struct cmStrictTargetComparison {
-  bool operator()(cmTarget *t1, cmTarget *t2) const;
+  bool operator()(cmTarget const* t1, cmTarget const* t2) const;
 };
 
 typedef std::map<cmTarget*,