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.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to