Make assorted arguments pass-by-reference.

This commit is contained in:
Jared Boone
2016-02-06 16:23:20 -08:00
parent a9451c17b4
commit 3172fb1ad6
7 changed files with 13 additions and 13 deletions

View File

@@ -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();
}