[qet] Rapports cppcheck pour QElectroTech

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Bonjour,

Si cela peut aider, j'ai lancé cppcheck (un outil libre et gratuit d'analyse statique pour C++) sur QElectroTech, vous trouverez ci-joint les rapports.

Julien Nabet
[sources/diagram.h:203]: (style) C-style pointer casting
[sources/conductorprofile.cpp:30]: (warning) Member variable 'ConductorProfile::beginOrientation' is not initialized in the constructor.
[sources/conductorprofile.cpp:30]: (warning) Member variable 'ConductorProfile::endOrientation' is not initialized in the constructor.
[sources/diagram.cpp:612]: (style) C-style pointer casting
[sources/diagramprintdialog.cpp:356]: (performance) Function parameter 'options' should be passed by reference.
[sources/diagramprintdialog.cpp:502]: (performance) Function parameter 'options' should be passed by reference.
[sources/diagramschooser.cpp:116]: (style) The scope of the variable 'check_box' can be reduced.
[sources/integrationmoveelementshandler.h:59] -> [sources/basicmoveelementshandler.h:60]: (warning) The class 'IntegrationMoveElementsHandler' defines member variable with name 'rename_' also defined in its parent class 'BasicMoveElementsHandler'.
[sources/editor/elementscene.cpp:245]: (style) The scope of the variable 'terminal' can be reduced.
[sources/editor/elementscene.cpp:246]: (style) The scope of the variable 'text' can be reduced.
[sources/editor/elementscene.cpp:247]: (style) The scope of the variable 'textfield' can be reduced.
[sources/editor/parttext.cpp:419]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary.
[sources/editor/parttextfield.cpp:177]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary.
[sources/interactivemoveelementshandler.h:73] -> [sources/basicmoveelementshandler.h:60]: (warning) The class 'InteractiveMoveElementsHandler' defines member variable with name 'rename_' also defined in its parent class 'BasicMoveElementsHandler'.
[sources/titleblock/qettemplateeditor.cpp:692]: (error) Uninitialized variable: can_merge
[sources/titleblock/qettemplateeditor.cpp:693]: (error) Uninitialized variable: can_split
[sources/titleblock/qettemplateeditor.cpp:687]: (error) Uninitialized variable: count
[sources/ui/diagramselection.cpp:103]: (style) Variable 'sel' is assigned a value that is never used.
[sources/xmlelementdefinition.h:66] -> [sources/elementdefinition.h:125]: (warning) The class 'XmlElementDefinition' defines member variable with name 'parent_category_' also defined in its parent class 'ElementDefinition'.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/