Skip to content

Commit

Permalink
static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyer committed Apr 29, 2024
1 parent afbfb53 commit 7cd8e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/F3DStarter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ void F3DStarter::SaveScreenshot(const std::string& filenameTemplate)
char* val = std::getenv(candidate);
if (val != nullptr)

Check warning on line 720 in application/F3DStarter.cxx

View check run for this annotation

Codecov / codecov/patch

application/F3DStarter.cxx#L719-L720

Added lines #L719 - L720 were not covered by tests
{
const auto path = std::filesystem::path(val);
std::filesystem::path path(val);
if (std::filesystem::is_directory(path))

Check warning on line 723 in application/F3DStarter.cxx

View check run for this annotation

Codecov / codecov/patch

application/F3DStarter.cxx#L722-L723

Added lines #L722 - L723 were not covered by tests
{
return path;

Check warning on line 725 in application/F3DStarter.cxx

View check run for this annotation

Codecov / codecov/patch

application/F3DStarter.cxx#L725

Added line #L725 was not covered by tests
Expand Down Expand Up @@ -760,7 +760,7 @@ void F3DStarter::SaveScreenshot(const std::string& filenameTemplate)
{
std::stringstream ss;
const std::string fn = path.string();
const std::string::size_type i = fn.find_last_of(".");
const std::string::size_type i = fn.find_last_of('.');
if (i != std::string::npos)
{
ss << fn.substr(0, i) << "_" << n << fn.substr(i);
Expand Down

0 comments on commit 7cd8e6a

Please sign in to comment.