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


Hi Julien,

julien2412 píše v Pá 15. 02. 2013 v 15:13 -0800:

Cppcheck reported this:
vcl/coretext/salcoretextlayout.cxx
569   unreadVariable  style   Variable 'is_vertical_run' is assigned a value that
is never used.

    565                     bool is_vertical_run = false;
    566                     CFDictionaryRef aDict = CTRunGetAttributes( run
);
    567                     if ( aDict ) {
    568                         const CFBooleanRef aValue = (const
CFBooleanRef)CFDictionaryGetValue( aDict, kCTVerticalFormsAttributeName );
    569                         is_vertical_run =  (aValue ==
kCFBooleanTrue) ? true : false;
    570                     }

See
http://opengrok.libreoffice.org/xref/core/vcl/coretext/salcoretextlayout.cxx#565

Should "vertical_run" variable just be removed or should it be used in a
way?

 From what I see, it has been introduced with

http://cgit.freedesktop.org/libreoffice/core/commit/?id=83ba7b4e8f67cc3a21fbaf476621af509032ae47

Tor - can it go, or is it of some use for later?

Regards,
Kendy


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.