mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-20 15:40:26 -04:00
LogFile pass references to reduce code size a bit.
Apparently the compiler isn't optimizing away copies in places I thought it would.
This commit is contained in:
parent
bb3cb6f080
commit
0cad2847f8
2 changed files with 6 additions and 6 deletions
|
@ -33,16 +33,16 @@ class LogFile {
|
|||
public:
|
||||
~LogFile();
|
||||
|
||||
bool open_for_append(const std::string file_path);
|
||||
bool open_for_append(const std::string& file_path);
|
||||
bool close();
|
||||
bool is_ready();
|
||||
|
||||
bool write_entry(const rtc::RTC& datetime, const std::string entry);
|
||||
bool write_entry(const rtc::RTC& datetime, const std::string& entry);
|
||||
|
||||
private:
|
||||
FIL f;
|
||||
|
||||
bool write(const std::string message);
|
||||
bool write(const std::string& message);
|
||||
};
|
||||
|
||||
#endif/*__LOG_FILE_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue