cmMakefile: Reduce GetModulesFile caller allocations

This commit is contained in:
Brad King committed 2024-03-22 09:51:06 -04:00
1 parent 5b2e785431
commit 4d661e3a92
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -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;
+3 -3
View File
@@ -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