Browse Source

cmFindPackageCommand: Protect overrides of `cmDirectoryListGenerator`

Move virtual function overrides into a protected section of class.
Alex Turbov 3 years ago
parent
commit
19366408fe
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/cmFindPackageCommand.cxx

+ 2 - 0
Source/cmFindPackageCommand.cxx

@@ -291,6 +291,7 @@ public:
   {
   {
   }
   }
 
 
+protected:
   void OnMatchesLoaded() override
   void OnMatchesLoaded() override
   {
   {
     // check if there is a specific sorting order to perform
     // check if there is a specific sorting order to perform
@@ -316,6 +317,7 @@ public:
   {
   {
   }
   }
 
 
+protected:
   std::string TransformNameBeforeCmp(std::string name) override
   std::string TransformNameBeforeCmp(std::string name) override
   {
   {
     return cmStrCat(name, this->Extension);
     return cmStrCat(name, this->Extension);