cmGlobalVisualStudio7Generator: Inline short method at only call site

This commit is contained in:
Brad King
2025-08-29 15:47:46 -04:00
parent 034cc29b89
commit 78d9564d50
2 changed files with 5 additions and 15 deletions

View File

@@ -299,8 +299,11 @@ void cmGlobalVisualStudio7Generator::Generate()
// first do the superclass method
this->cmGlobalVisualStudioGenerator::Generate();
// Now write out the VS Solution file.
this->OutputSLNFile();
// Now write out the VS Solution files.
for (auto& it : this->ProjectMap) {
this->OutputSLNFile(it.second[0], it.second);
}
// If any solution or project files changed during the generation,
// tell Visual Studio to reload them...
if (!cmSystemTools::GetErrorOccurredFlag() &&
@@ -340,14 +343,6 @@ void cmGlobalVisualStudio7Generator::OutputSLNFile(
}
}
// output the SLN file
void cmGlobalVisualStudio7Generator::OutputSLNFile()
{
for (auto& it : this->ProjectMap) {
this->OutputSLNFile(it.second[0], it.second);
}
}
void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
std::ostream& fout, std::vector<std::string> const& configs,
OrderedTargetDependSet const& projectTargets) const

View File

@@ -82,11 +82,6 @@ public:
std::vector<std::string> const& makeOptions =
std::vector<std::string>()) override;
/**
* Generate the VS Solution file.
*/
virtual void OutputSLNFile();
//! Lookup a stored GUID or compute one deterministically.
std::string GetGUID(std::string const& name) const;