diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-29 21:01:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-29 22:02:24 +0100 |
commit | 57d80be7fcd35625bd9e8007cb75088491ed5a1c (patch) | |
tree | 40dcc0a98582fe62918bceba7a76407c4c00a7f7 | |
parent | be68bf55c303ce8aaaa79578178e6ff9a5e18d18 (diff) |
coverity#1371147 avoid Missing move assignment operator
Change-Id: Ie9bc91be66ae0fe24bd1920d2ea59b0f5376e7b1
-rw-r--r-- | filter/source/graphicfilter/etiff/etiff.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/filter/source/graphicfilter/etiff/etiff.cxx b/filter/source/graphicfilter/etiff/etiff.cxx index 6af101783d81..b6421501529d 100644 --- a/filter/source/graphicfilter/etiff/etiff.cxx +++ b/filter/source/graphicfilter/etiff/etiff.cxx @@ -174,15 +174,9 @@ bool TIFFWriter::WriteTIFF( const Graphic& rGraphic, FilterConfigItem* pFilterCo if( mbStatus ) { - Animation aAnimation; - - if (rGraphic.IsAnimated()) - aAnimation = rGraphic.GetAnimation(); - else - { - AnimationBitmap aAnimationBitmap(rGraphic.GetBitmap(), Point(), Size()); - aAnimation.Insert(aAnimationBitmap); - } + Animation aAnimation = rGraphic.IsAnimated() ? rGraphic.GetAnimation() : Animation(); + if (!rGraphic.IsAnimated()) + aAnimation.Insert(AnimationBitmap(rGraphic.GetBitmap(), Point(), Size())); for (size_t i = 0; i < aAnimation.Count(); ++i) mnSumOfAllPictHeight += aAnimation.Get(i).aBmpEx.GetSizePixel().Height(); |