Skip to content

Commit

Permalink
noggit: MPQ: fix parameter having the same identifier as class member
Browse files Browse the repository at this point in the history
  • Loading branch information
Adspartan committed May 10, 2021
1 parent f2e330d commit 3315198
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/noggit/MPQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ void MPQArchive::unloadAllMPQs()
_openArchives.clear();
}

bool MPQArchive::hasFile(std::string const& filename) const
bool MPQArchive::hasFile(std::string const& file) const
{
return SFileHasFile(_archiveHandle, noggit::mpq::normalized_filename_insane (filename).c_str());
return SFileHasFile(_archiveHandle, noggit::mpq::normalized_filename_insane (file).c_str());
}

void MPQArchive::unloadMPQ(std::string const& filename)
Expand All @@ -152,10 +152,10 @@ void MPQArchive::unloadMPQ(std::string const& filename)
}
}

bool MPQArchive::openFile(std::string const& filename, HANDLE* fileHandle) const
bool MPQArchive::openFile(std::string const& file, HANDLE* fileHandle) const
{
assert(fileHandle);
return SFileOpenFileEx(_archiveHandle, noggit::mpq::normalized_filename_insane (filename).c_str(), 0, fileHandle);
return SFileOpenFileEx(_archiveHandle, noggit::mpq::normalized_filename_insane (file).c_str(), 0, fileHandle);
}

namespace
Expand Down

0 comments on commit 3315198

Please sign in to comment.