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


Hello,

Cppcheck reported this:
<error file="svx/source/sidebar/paragraph/ParaPropertyPanel.cxx" line="309"
id="duplicateBranch" severity="style" msg="Found duplicate branches for 'if'
and 'else'."/>
<error file="svx/source/sidebar/paragraph/ParaPropertyPanel.cxx" line="328"
id="duplicateBranch" severity="style" msg="Found duplicate branches for 'if'
and 'else'."/>
Indeed, see
http://opengrok.libreoffice.org/xref/core/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx#309
    309     if( Application::GetSettings().GetLayoutRTL())
    310     {
    311         mpTbxIndent_IncDec->SetItemImage(nIdIncrement,
maIncIndentControl.GetIcon());
    312         mpTbxIndent_IncDec->SetItemImage(nIdDecrement,
maDecIndentControl.GetIcon());
    313     }
    314     else
    315     {
    316         mpTbxIndent_IncDec->SetItemImage(nIdIncrement,
maIncIndentControl.GetIcon());
    317         mpTbxIndent_IncDec->SetItemImage(nIdDecrement,
maDecIndentControl.GetIcon());
    318     }

    328     if( Application::GetSettings().GetLayoutRTL())
    329     {
    330         mpTbxProDemote->SetItemImage(nIdPromote,
maOutLineLeftControl.GetIcon());
    331         mpTbxProDemote->SetItemImage(nIdDemote,
maOutLineRightControl.GetIcon());
    332     }
    333     else
    334     {
    335         mpTbxProDemote->SetItemImage(nIdPromote,
maOutLineLeftControl.GetIcon());
    336         mpTbxProDemote->SetItemImage(nIdDemote,
maOutLineRightControl.GetIcon());
    337     }

Any idea how it should be?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/Cppcheck-duplicateBranch-in-ParaPropertyPanel-cxx-svx-module-tp4067942.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.