Apache OpenOffice (AOO) Bugzilla – Issue 96112
sw: ambiguous && ||
Last modified: 2013-08-07 14:43:11 UTC
In sw/source/ui/uiview/srcview.cxx we have if ( rHint.ISA(SfxSimpleHint) && (((SfxSimpleHint&) rHint).GetId() == SFX_HINT_MODECHANGED) || (((SfxSimpleHint&) rHint).GetId() == SFX_HINT_TITLECHANGED && !GetDocShell()->IsReadOnly() && aEditWin.IsReadonly())) operator precedence means that this means... if ( ( rHint.ISA(SfxSimpleHint) && (((SfxSimpleHint&) rHint).GetId() == SFX_HINT_MODECHANGED) ) || ( ((SfxSimpleHint&) rHint).GetId() == SFX_HINT_TITLECHANGED && !GetDocShell()->IsReadOnly() && aEditWin.IsReadonly() ) ) which doesn't look quite right, in that if rHint fails ISA SfxSimpleHint then we move to the other leg and cast it to a SfxSimpleHint anyway. Not sure what we actually intend here, attached is one possibility.
Created attachment 57898 [details] suspicious code
Fixed in CWS sw31bf02.
.
Ready for QA ;-)
verified in cws sw31bf02
closed, integrated