Cppcheck: "bContainsDate" not read in templateremoteview.cxx (sfx2)
julien2412
serval2412 at yahoo.fr
Sun Jan 27 14:02:01 PST 2013
Hello,
Cppcheck detected this:
sfx2/source/control/templateremoteview.cxx
129 unreadVariable style Variable 'bContainsDate' is assigned a value that
is never used.
Here are the lines:
124 bool bContainsDate = !xRow->wasNull();
125
126 if ( !bContainsDate )
127 {
128 aDT = xRow->getTimestamp( ROW_DATE_CREATE );
129 bContainsDate = !xRow->wasNull();
130 }
see
http://opengrok.libreoffice.org/xref/core/sfx2/source/control/templateremoteview.cxx#116
Should line 129 just be removed or bContainsDate should be used in some way
or bContainsDate shouldn't be a new variable for each while loop?
Julien
--
View this message in context: http://nabble.documentfoundation.org/Cppcheck-bContainsDate-not-read-in-templateremoteview-cxx-sfx2-tp4032416.html
Sent from the Dev mailing list archive at Nabble.com.
More information about the LibreOffice
mailing list