summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-02 11:45:11 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-02 12:09:27 +0200
commit17c60594fad636edcc26fb4c4b884aa1d5c84eb2 (patch)
treee6ab6451d16375935b08f37c0ec434e1da382681 /sd
parentc48cc19e1345fa7445190cef62224dbfed8433d0 (diff)
WaE: use of logical '||' with constant operand
A sal_Bool variable is logical-ored with sal_False, wtf? The only way this can have any meaning is if the sal_Bool variable actually has some other value than sal_False (0) or sal_True (1); in that case the logical or will turn it into a sal_True. But I doubt that is the case here. The code has been like this since initial import in 2000.
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index fb928e81b0ea..54a37e8abda9 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -989,7 +989,7 @@ IMPL_LINK_NOARG(SdDrawDocument, WorkStartupHdl)
pNotesPage->SetAutoLayout(AUTOLAYOUT_NOTES, sal_True, sal_True);
}
- SetChanged(bChanged || sal_False);
+ SetChanged(bChanged);
if( mpDocSh )
mpDocSh->SetWaitCursor( sal_False );