diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:05:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:05:46 +0300 |
commit | 467a5c03ccb5ea2d1977bd84adcab69eefb4e051 (patch) | |
tree | a43709e19c87776f2db42304b6bd7f0c13721361 /src/gui/fonts/textchunksmall.cpp | |
parent | 9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2 (diff) | |
download | manaverse-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.gz manaverse-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.bz2 manaverse-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.xz manaverse-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.zip |
Add missing operator= in classes with copy constructors.
Diffstat (limited to 'src/gui/fonts/textchunksmall.cpp')
-rw-r--r-- | src/gui/fonts/textchunksmall.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |