summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-02 16:50:11 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-02 18:43:37 +0200
commit627bee1307730dfe7cd55d3c88d44367ece0acdb (patch)
tree72cc1c7dbbc35fc7ba571ff32a567388ac45d5c1 /sd
parentWaE: has virtual functions but non-virtual destructor (diff)
downloadcore-627bee1307730dfe7cd55d3c88d44367ece0acdb.tar.gz
core-627bee1307730dfe7cd55d3c88d44367ece0acdb.zip
WaE: expression result unused
If-zero out a leftover isolated expression without effect. (Introduced in 2007 in CWS impress122.)
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/SlideTransitionPane.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index ead2fb97b495..90fdab461eed 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -208,7 +208,13 @@ struct TransitionEffect
mbTimeAmbiguous = mbTimeAmbiguous || aOtherEffect.mbTimeAmbiguous || mnTime != aOtherEffect.mnTime;
mbPresChangeAmbiguous = mbPresChangeAmbiguous || aOtherEffect.mbPresChangeAmbiguous || mePresChange != aOtherEffect.mePresChange;
mbSoundAmbiguous = mbSoundAmbiguous || aOtherEffect.mbSoundAmbiguous || mbSoundOn != aOtherEffect.mbSoundOn;
+#if 0
+ // Weird leftover isolated expression with no effect, introduced in 2007 in
+ // CWS impress122. Ifdeffed out to avoid compiler warning, kept here in case
+ // somebody who understands this code notices and understands what the
+ // "right" thing to do might be.
(!mbStopSound && !aOtherEffect.mbStopSound && maSound != aOtherEffect.maSound) || (mbStopSound != aOtherEffect.mbStopSound);
+#endif
mbLoopSoundAmbiguous = mbLoopSoundAmbiguous || aOtherEffect.mbLoopSoundAmbiguous || mbLoopSound != aOtherEffect.mbLoopSound;
}