diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-04-29 20:33:47 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-04-29 20:45:53 +1000 |
| commit | 2fa553e728d5600426886e6301d80807f02db533 (patch) | |
| tree | 68b888309dca772ba3eb862965cdacbf975e820e /src/display_buffer.hh | |
| parent | cbb91bcaed309a00f7b9de496e5adb346e3aab54 (diff) | |
Remove implicit conversion from String to DisplayAtom/DisplayLine
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index e284fe1f..6d20f105 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -37,7 +37,7 @@ public: DisplayAtom(const Buffer& buffer, BufferCoord begin, BufferCoord end) : m_type(Range), m_buffer(&buffer), m_range{begin, end} {} - DisplayAtom(String str, Face face = Face{}) + DisplayAtom(String str, Face face) : m_type(Text), m_text(std::move(str)), face(face) {} StringView content() const; @@ -104,7 +104,7 @@ public: DisplayLine() = default; DisplayLine(AtomList atoms); - DisplayLine(String str, Face face = Face{}) + DisplayLine(String str, Face face) { push_back({ std::move(str), face }); } iterator begin() { return m_atoms.begin(); } |
