Skip to content

Commit 5ca6ee0

Browse files
gridleypaulromano
andauthored
use auto rather than std::string::size_type
Co-authored-by: Paul Romano <[email protected]>
1 parent 0738a35 commit 5ca6ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/openmc/file_utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ inline bool file_exists(const std::string& filename)
4242
inline std::string get_file_extension(const std::string& filename)
4343
{
4444
// check that at least one letter is present
45-
const std::string::size_type last_period_pos = filename.find_last_of('.');
45+
const auto last_period_pos = filename.find_last_of('.');
4646

4747
// no file extension
4848
if (last_period_pos == std::string::npos)

0 commit comments

Comments
 (0)