Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hello,

Cppcheck reported this:
sc/source/ui/view/tabview2.cxx
970     unreadVariable  style   Variable 'bMark' is assigned a value that is never
used.    951 void ScTabView::PaintBlock( bool bReset )
    952 {
    953     ScMarkData& rMark = aViewData.GetMarkData();
    954     SCTAB nTab = aViewData.GetTabNo();
    955     bool bMark = rMark.IsMarked();
    956     bool bMulti = rMark.IsMultiMarked();
    957     if (bMark || bMulti)
    958     {
    959         ScRange aMarkRange;
    960         HideAllCursors();
    961         if (bMulti)
    962         {
    963             bool bFlag = rMark.GetMarkingFlag();
    964             rMark.SetMarking(false);
    965             rMark.MarkToMulti();
    966             rMark.GetMultiMarkArea(aMarkRange);
    967             rMark.MarkToSimple();
    968             rMark.SetMarking(bFlag);
    969 
    970             bMark = rMark.IsMarked();

See
http://opengrok.libreoffice.org/xref/core/sc/source/ui/view/tabview2.cxx#950

Is line 970 can be removed or is something lacking?

Julien




--
View this message in context: 
http://nabble.documentfoundation.org/Cppcheck-bMark-is-assigned-a-value-never-used-sc-module-tp4037118.html
Sent from the Dev mailing list archive at Nabble.com.

Context


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.