Format osgpluginchecker.cpp.in

I formatted the generated file that's part of the VS solution, then diffed it against the input and changed it to match.
fix-osga-rotate-wildly
AnyOldName3 10 months ago
parent 2a5f8d5bab
commit bcd54ab1ff

@ -41,9 +41,9 @@ namespace Misc
for (const auto& path : filepath)
{
#ifdef OSG_USE_UTF8_FILENAME
std::filesystem::path osgPath {stringToU8String(path)};
std::filesystem::path osgPath{ stringToU8String(path) };
#else
std::filesystem::path osgPath {path};
std::filesystem::path osgPath{ path };
#endif
if (!osgPath.has_filename())
osgPath = osgPath.parent_path();
@ -64,14 +64,16 @@ namespace Misc
bool haveAllPlugins = true;
for (std::string_view plugin : USED_OSG_PLUGIN_FILENAMES)
{
if (std::find_if(availableOSGPlugins.begin(), availableOSGPlugins.end(), [&](std::string_view availablePlugin) {
if (std::find_if(availableOSGPlugins.begin(), availableOSGPlugins.end(),
[&](std::string_view availablePlugin) {
#ifdef OSG_USE_UTF8_FILENAME
std::filesystem::path pluginPath {stringToU8String(availablePlugin)};
std::filesystem::path pluginPath{ stringToU8String(availablePlugin) };
#else
std::filesystem::path pluginPath {availablePlugin};
#endif
return pluginPath.filename() == plugin;
}) == availableOSGPlugins.end())
return pluginPath.filename() == plugin;
})
== availableOSGPlugins.end())
{
Log(Debug::Error) << "Missing OSG plugin: " << plugin;
haveAllPlugins = false;

Loading…
Cancel
Save