cmOSXBundleGenerator: Make MacOSXContentGeneratorType arg const.

This commit is contained in:
Stephen Kelly 2014-03-12 23:45:43 +01:00
parent 6132d979d9
commit 04cf50ff62
5 changed files with 6 additions and 5 deletions

View File

@ -373,7 +373,7 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void void
cmMakefileTargetGenerator::MacOSXContentGeneratorType::operator() cmMakefileTargetGenerator::MacOSXContentGeneratorType::operator()
(cmSourceFile& source, const char* pkgloc) (cmSourceFile const& source, const char* pkgloc)
{ {
// Skip OS X content when not building a Framework or Bundle. // Skip OS X content when not building a Framework or Bundle.
if(!this->Generator->GetTarget()->IsBundleOnApple()) if(!this->Generator->GetTarget()->IsBundleOnApple())

View File

@ -81,7 +81,7 @@ protected:
MacOSXContentGeneratorType(cmMakefileTargetGenerator* gen) : MacOSXContentGeneratorType(cmMakefileTargetGenerator* gen) :
Generator(gen) {} Generator(gen) {}
void operator()(cmSourceFile& source, const char* pkgloc); void operator()(cmSourceFile const& source, const char* pkgloc);
private: private:
cmMakefileTargetGenerator* Generator; cmMakefileTargetGenerator* Generator;

View File

@ -733,7 +733,7 @@ cmNinjaTargetGenerator
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void void
cmNinjaTargetGenerator::MacOSXContentGeneratorType::operator()( cmNinjaTargetGenerator::MacOSXContentGeneratorType::operator()(
cmSourceFile& source, const char* pkgloc) cmSourceFile const& source, const char* pkgloc)
{ {
// Skip OS X content when not building a Framework or Bundle. // Skip OS X content when not building a Framework or Bundle.
if(!this->Generator->GetTarget()->IsBundleOnApple()) if(!this->Generator->GetTarget()->IsBundleOnApple())

View File

@ -129,7 +129,7 @@ protected:
MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) : MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) :
Generator(g) {} Generator(g) {}
void operator()(cmSourceFile& source, const char* pkgloc); void operator()(cmSourceFile const& source, const char* pkgloc);
private: private:
cmNinjaTargetGenerator* Generator; cmNinjaTargetGenerator* Generator;

View File

@ -44,7 +44,8 @@ public:
struct MacOSXContentGeneratorType struct MacOSXContentGeneratorType
{ {
virtual ~MacOSXContentGeneratorType() {} virtual ~MacOSXContentGeneratorType() {}
virtual void operator()(cmSourceFile& source, const char* pkgloc) = 0; virtual void operator()(cmSourceFile const& source,
const char* pkgloc) = 0;
}; };
void GenerateMacOSXContentStatements( void GenerateMacOSXContentStatements(