mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 21:17:42 +00:00
Make assorted arguments pass-by-reference.
This commit is contained in:
@@ -31,7 +31,7 @@ class File {
|
||||
public:
|
||||
~File();
|
||||
|
||||
bool open_for_append(const std::string file_path);
|
||||
bool open_for_append(const std::string& file_path);
|
||||
bool close();
|
||||
|
||||
bool is_ready();
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
bool read(void* const data, const size_t bytes_to_read);
|
||||
bool write(const void* const data, const size_t bytes_to_write);
|
||||
|
||||
bool puts(const std::string string);
|
||||
bool puts(const std::string& string);
|
||||
|
||||
bool sync();
|
||||
|
||||
|
Reference in New Issue
Block a user