mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 09:39:40 +00:00
Performance enhancment and minor copy-paste fix.
This commit is contained in:
parent
0d163d76ab
commit
71cb85dbc4
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ struct mrComparer
|
|||
private:
|
||||
int m_start, m_size;
|
||||
|
||||
bool comparePortion(std::string file1, std::string file2, int start, int size) const
|
||||
bool comparePortion(const std::string& file1, const std::string& file2, int start, int size) const
|
||||
{
|
||||
for(int i = start; i < start+size; i++)
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ private:
|
|||
if(one != two)
|
||||
return (one < two);
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue