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


On 13/02/2013 17:52, Eike Rathke wrote:
Hi julien2412,

On Wednesday, 2013-02-13 06:24:20 -0800, julien2412 wrote:

Cppcheck reported this:
sc/source/ui/view/tabview2.cxx
970     unreadVariable  style   Variable 'bMark' is assigned a value that is never
...
See
http://opengrok.libreoffice.org/xref/core/sc/source/ui/view/tabview2.cxx#950

Is line 970 can be removed or is something lacking?
It can be removed. However, I suggest to also remove line 955 and change
line 957

-    if (bMark || bMulti)
+    if (rMark.IsMarked() || bMulti)

So no one accidentally assumes bMark would be valid after that scope.
Thank you for your feedback Eike!
I pushed the patch on master, see http://cgit.freedesktop.org/libreoffice/core/commit/?id=c3aad7456adb8a24e2350c9b50778adefb2d1444

Julien

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.