We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0738a35 commit 5ca6ee0Copy full SHA for 5ca6ee0
include/openmc/file_utils.h
@@ -42,7 +42,7 @@ inline bool file_exists(const std::string& filename)
42
inline std::string get_file_extension(const std::string& filename)
43
{
44
// check that at least one letter is present
45
- const std::string::size_type last_period_pos = filename.find_last_of('.');
+ const auto last_period_pos = filename.find_last_of('.');
46
47
// no file extension
48
if (last_period_pos == std::string::npos)
0 commit comments