From 467a5c03ccb5ea2d1977bd84adcab69eefb4e051 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 18:05:46 +0300 Subject: Add missing operator= in classes with copy constructors. --- src/gui/fonts/textchunksmall.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/fonts/textchunksmall.cpp') diff --git a/src/gui/fonts/textchunksmall.cpp b/src/gui/fonts/textchunksmall.cpp index afb66dacc..f8c84fdb8 100644 --- a/src/gui/fonts/textchunksmall.cpp +++ b/src/gui/fonts/textchunksmall.cpp @@ -40,6 +40,13 @@ TextChunkSmall::TextChunkSmall(const TextChunkSmall &old) : { } +void TextChunkSmall::operator=(const TextChunkSmall &chunk) +{ + text = chunk.text; + color = chunk.color; + color2 = chunk.color2; +} + bool TextChunkSmall::operator==(const TextChunkSmall &chunk) const { return (chunk.text == text && chunk.color == color -- cgit v1.2.3-60-g2f50