diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-11-18 11:41:45 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-11-19 13:51:03 -0800 |
commit | 2cd7b9db25615093a18e8e2335b2dffd4430e471 (patch) | |
tree | 314a511fa58b020cfb882e0501b656a781a63e91 /core/uemis-downloader.c | |
parent | 26a4fb56326667c244f2a73aaf8a76be906e9fb8 (diff) | |
download | subsurface-2cd7b9db25615093a18e8e2335b2dffd4430e471.tar.gz |
Warnings: replace memcpy by assignment
New gcc (v8.2) complains about memcpy()ing an object with non-POD
members. Even though this seems not to be an issue for template_options,
the warning has some merrit. The compiler will recognize when to do
a memcpy() anyway. Moreover, the assignment is easier to read and also
more secure, as a-priory we can't know if Qt's QColor copy-constructor
does some strange things (hopefully not).
Thus, replace memcpy() by simple assignment.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/uemis-downloader.c')
0 files changed, 0 insertions, 0 deletions