Hello,
Cppcheck detected this:
sc/source/core/data/table5.cxx
147 unreadVariable style Variable 'bSkipBreaks' is assigned a value that is
never used.
Here are the lines:
141 if (!bSkipBreaks && pStyleSet->GetItemState(ATTR_PAGE_SCALETO,
false, &pItem) == SFX_ITEM_SET)
142 {
143 const ScPageScaleToItem& rScaleToItem = static_cast<const
ScPageScaleToItem&>(
144 pStyleSet->Get(ATTR_PAGE_SCALETO));
145 if (rScaleToItem.GetWidth() > 0 || rScaleToItem.GetHeight()
0)
146 // when fitting to a fixed width x height, ignore manual
breaks.
147 bSkipBreaks = true;
148 }
see
http://opengrok.libreoffice.org/xref/core/sc/source/core/data/table5.cxx#141
According to the comment line 146, it seems "bSkipBreaks" should be used but
how?
Julien
--
View this message in context:
http://nabble.documentfoundation.org/Cppcheck-bSkipBreaks-is-assigned-a-value-that-is-never-used-sc-tp4034724.html
Sent from the Dev mailing list archive at Nabble.com.
Context
- Cppcheck: ''bSkipBreaks' is assigned a value that is never used (sc) · julien2412
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.