cmOSXBundleGenerator: Make MacOSXContentGeneratorType arg const.
This commit is contained in:
parent
6132d979d9
commit
04cf50ff62
|
@ -373,7 +373,7 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags()
|
|||
//----------------------------------------------------------------------------
|
||||
void
|
||||
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.
|
||||
if(!this->Generator->GetTarget()->IsBundleOnApple())
|
||||
|
|
|
@ -81,7 +81,7 @@ protected:
|
|||
MacOSXContentGeneratorType(cmMakefileTargetGenerator* gen) :
|
||||
Generator(gen) {}
|
||||
|
||||
void operator()(cmSourceFile& source, const char* pkgloc);
|
||||
void operator()(cmSourceFile const& source, const char* pkgloc);
|
||||
|
||||
private:
|
||||
cmMakefileTargetGenerator* Generator;
|
||||
|
|
|
@ -733,7 +733,7 @@ cmNinjaTargetGenerator
|
|||
//----------------------------------------------------------------------------
|
||||
void
|
||||
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.
|
||||
if(!this->Generator->GetTarget()->IsBundleOnApple())
|
||||
|
|
|
@ -129,7 +129,7 @@ protected:
|
|||
MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) :
|
||||
Generator(g) {}
|
||||
|
||||
void operator()(cmSourceFile& source, const char* pkgloc);
|
||||
void operator()(cmSourceFile const& source, const char* pkgloc);
|
||||
|
||||
private:
|
||||
cmNinjaTargetGenerator* Generator;
|
||||
|
|
|
@ -44,7 +44,8 @@ public:
|
|||
struct MacOSXContentGeneratorType
|
||||
{
|
||||
virtual ~MacOSXContentGeneratorType() {}
|
||||
virtual void operator()(cmSourceFile& source, const char* pkgloc) = 0;
|
||||
virtual void operator()(cmSourceFile const& source,
|
||||
const char* pkgloc) = 0;
|
||||
};
|
||||
|
||||
void GenerateMacOSXContentStatements(
|
||||
|
|
Loading…
Reference in New Issue