mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 18:58:34 -06:00
cmMakefile: Reduce GetModulesFile caller allocations
This commit is contained in:
@@ -3906,8 +3906,8 @@ void cmMakefile::DisplayStatus(const std::string& message, float s) const
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmMakefile::GetModulesFile(const std::string& filename,
|
std::string cmMakefile::GetModulesFile(cm::string_view filename, bool& system,
|
||||||
bool& system, bool debug,
|
bool debug,
|
||||||
std::string& debugBuffer) const
|
std::string& debugBuffer) const
|
||||||
{
|
{
|
||||||
std::string result;
|
std::string result;
|
||||||
|
|||||||
@@ -803,7 +803,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Return a location of a file in cmake or custom modules directory
|
* Return a location of a file in cmake or custom modules directory
|
||||||
*/
|
*/
|
||||||
std::string GetModulesFile(const std::string& name) const
|
std::string GetModulesFile(cm::string_view name) const
|
||||||
{
|
{
|
||||||
bool system;
|
bool system;
|
||||||
std::string debugBuffer;
|
std::string debugBuffer;
|
||||||
@@ -813,13 +813,13 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Return a location of a file in cmake or custom modules directory
|
* Return a location of a file in cmake or custom modules directory
|
||||||
*/
|
*/
|
||||||
std::string GetModulesFile(const std::string& name, bool& system) const
|
std::string GetModulesFile(cm::string_view name, bool& system) const
|
||||||
{
|
{
|
||||||
std::string debugBuffer;
|
std::string debugBuffer;
|
||||||
return this->GetModulesFile(name, system, false, debugBuffer);
|
return this->GetModulesFile(name, system, false, debugBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetModulesFile(const std::string& name, bool& system, bool debug,
|
std::string GetModulesFile(cm::string_view name, bool& system, bool debug,
|
||||||
std::string& debugBuffer) const;
|
std::string& debugBuffer) const;
|
||||||
|
|
||||||
//! Set/Get a property of this directory
|
//! Set/Get a property of this directory
|
||||||
|
|||||||
Reference in New Issue
Block a user