mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -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
|
||||
}
|
||||
|
||||
std::string cmMakefile::GetModulesFile(const std::string& filename,
|
||||
bool& system, bool debug,
|
||||
std::string cmMakefile::GetModulesFile(cm::string_view filename, bool& system,
|
||||
bool debug,
|
||||
std::string& debugBuffer) const
|
||||
{
|
||||
std::string result;
|
||||
|
||||
@@ -803,7 +803,7 @@ public:
|
||||
/**
|
||||
* 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;
|
||||
std::string debugBuffer;
|
||||
@@ -813,13 +813,13 @@ public:
|
||||
/**
|
||||
* 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;
|
||||
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;
|
||||
|
||||
//! Set/Get a property of this directory
|
||||
|
||||
Reference in New Issue
Block a user