diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-15 15:44:43 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-15 15:44:43 +0100 |
commit | ef5d6ccfb7bf155a238ada79db12ea41ca993116 (patch) | |
tree | bc1acc6c5b0df70661293de0f8d0586ce0808982 /core/io/file_access_zip.h | |
parent | 4859f8090f1e21d42bc81313f15367dcb1c4220c (diff) | |
parent | a8bc9f3e78788bdf0be7348fcbfac15c127f1f48 (diff) | |
download | redot-engine-ef5d6ccfb7bf155a238ada79db12ea41ca993116.tar.gz |
Merge pull request #86966 from Muller-Castro/value2ref-core
Add const lvalue ref to `core/*` container parameters
Diffstat (limited to 'core/io/file_access_zip.h')
-rw-r--r-- | core/io/file_access_zip.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/io/file_access_zip.h b/core/io/file_access_zip.h index 1062a06238..e9ea74e01d 100644 --- a/core/io/file_access_zip.h +++ b/core/io/file_access_zip.h @@ -61,11 +61,11 @@ private: public: void close_handle(unzFile p_file) const; - unzFile get_file_handle(String p_file) const; + unzFile get_file_handle(const String &p_file) const; - Error add_package(String p_name); + Error add_package(const String &p_name); - bool file_exists(String p_name) const; + bool file_exists(const String &p_name) const; virtual bool try_open_pack(const String &p_path, bool p_replace_files, uint64_t p_offset) override; Ref<FileAccess> get_file(const String &p_path, PackedData::PackedFile *p_file) override; |