mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 10:01:15 +00:00
Use const reference where favorable
This commit is contained in:
parent
9575dbdf78
commit
21d281c4a9
17 changed files with 71 additions and 30 deletions
|
|
@ -171,7 +171,7 @@ class AppxPackager {
|
|||
}
|
||||
|
||||
Vector<uint8_t> make_file_header(FileMeta p_file_meta);
|
||||
void store_central_dir_header(const FileMeta p_file, bool p_do_hash = true);
|
||||
void store_central_dir_header(const FileMeta &p_file, bool p_do_hash = true);
|
||||
Vector<uint8_t> make_end_of_central_record();
|
||||
|
||||
String content_type(String p_extension);
|
||||
|
|
@ -329,7 +329,7 @@ Vector<uint8_t> AppxPackager::make_file_header(FileMeta p_file_meta) {
|
|||
return buf;
|
||||
}
|
||||
|
||||
void AppxPackager::store_central_dir_header(const FileMeta p_file, bool p_do_hash) {
|
||||
void AppxPackager::store_central_dir_header(const FileMeta &p_file, bool p_do_hash) {
|
||||
|
||||
Vector<uint8_t> &buf = central_dir_data;
|
||||
int offs = buf.size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue