Skip to content

Commit

Permalink
make clang happy (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narre committed Aug 29, 2023
1 parent 65528cb commit 27346b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/video_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ VideoSystem::do_take_screenshot()
oss << "screenshot" << std::setw(6) << std::setfill('0') << num << ".png";
const std::string screenshot_filename = FileSystem::join(screenshots_dir, oss.str());
if (!PHYSFS_exists(screenshot_filename.c_str())) {
return screenshot_filename;
#ifdef __clang__
return std::move(screenshot_filename);
#else
return screenshot_filename;
#endif
}
}
return std::nullopt;
Expand Down

0 comments on commit 27346b6

Please sign in to comment.