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


Hello,

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?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/Cppcheck-is-vertical-run-is-assigned-a-value-that-is-never-used-vcl-module-tp4037884.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.