mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-19 10:11:59 +00:00
Make assorted arguments pass-by-reference.
This commit is contained in:
@@ -35,7 +35,7 @@ void Console::clear() {
|
||||
display.scroll_set_position(0);
|
||||
}
|
||||
|
||||
void Console::write(const std::string message) {
|
||||
void Console::write(const std::string& message) {
|
||||
const Style& s = style();
|
||||
const Font& font = s.font;
|
||||
const auto rect = screen_rect();
|
||||
@@ -58,7 +58,7 @@ void Console::write(const std::string message) {
|
||||
}
|
||||
}
|
||||
|
||||
void Console::writeln(const std::string message) {
|
||||
void Console::writeln(const std::string& message) {
|
||||
write(message);
|
||||
crlf();
|
||||
}
|
||||
|
Reference in New Issue
Block a user