mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-05-01 06:07:59 +03:00
Loader: Refactored use of const.
This commit is contained in:
parent
a8c4648520
commit
62b444cd17
6 changed files with 19 additions and 20 deletions
|
@ -18,7 +18,7 @@ namespace Loader {
|
|||
* @todo (ShizZy) this function sucks... make it actually check file contents etc.
|
||||
* @return FileType of file
|
||||
*/
|
||||
const FileType IdentifyFile(const std::string &filename) {
|
||||
FileType IdentifyFile(const std::string &filename) {
|
||||
if (filename.size() == 0) {
|
||||
ERROR_LOG(LOADER, "invalid filename %s", filename.c_str());
|
||||
return FileType::Error;
|
||||
|
@ -45,7 +45,7 @@ const FileType IdentifyFile(const std::string &filename) {
|
|||
* @param filename String filename of bootable file
|
||||
* @return ResultStatus result of function
|
||||
*/
|
||||
const ResultStatus LoadFile(std::string& filename) {
|
||||
ResultStatus LoadFile(const std::string& filename) {
|
||||
INFO_LOG(LOADER, "Loading file %s...", filename.c_str());
|
||||
|
||||
switch (IdentifyFile(filename)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue