Skip to content
Snippets Groups Projects
Commit 0e139c4c authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixed function removeFileNameExtension.

parent 3c5e76fd
No related branches found
No related tags found
1 merge request!34Runge kutta
...@@ -114,7 +114,7 @@ inline String removeFileNameExtension( String fileName ) ...@@ -114,7 +114,7 @@ inline String removeFileNameExtension( String fileName )
const int size = fileName.getLength(); const int size = fileName.getLength();
int i = 1; int i = 1;
while( fileName[ size - i ] != '.' && size > i ) i++; while( fileName[ size - i ] != '.' && size > i ) i++;
fileName = fileName.substr( 0, size - i + 1 ); fileName = fileName.substr( 0, size - i );
return fileName; return fileName;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment