diff options
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index 9eb82cb8d3..2b77fc0bab 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -315,6 +315,11 @@ void formatted_string::fs_op::display() const } } +void formatted_string::swap(formatted_string& other) +{ + ops.swap(other.ops); +} + int count_linebreaks(const formatted_string& fs) { std::string::size_type where = 0; |