Skip to content

Commit

Permalink
improve performance
Browse files Browse the repository at this point in the history
use move
  • Loading branch information
qnnnnez committed Dec 23, 2016
1 parent d3eb2af commit 351aff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pakfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ namespace scpak
item.type = reader.readString();
item.offset = reader.readInt();
item.length = reader.readInt();
m_contents.push_back(item);
addItem(std::move(item));
}
// read all contents
for (PakItem &item : m_contents)
Expand Down

0 comments on commit 351aff5

Please sign in to comment.