mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-18 09:12:22 -05:00
Make assorted arguments pass-by-reference.
This commit is contained in:
parent
a9451c17b4
commit
3172fb1ad6
7 changed files with 13 additions and 13 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue