Bug 509529

Summary: calligra-25.08.1: five performance problems
Product: [Applications] calligracommon Reporter: dcb314
Component: generalAssignee: Calligra Bugs <calligra-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dcb314 2025-09-15 18:05:38 UTC
Static analyser cppcheck says:

calligra-25.08.1/filters/words/msword-odf/wv2/src/textconverter.h:72:17: performance: Function 'fromCode()' should return member 'm_fromCode' by const reference. [returnByReference]
calligra-25.08.1/filters/words/msword-odf/wv2/src/graphics.cpp:246:44: performance: Function parameter 'blipType' should be passed by const reference. [passedByValue]
calligra-25.08.1/filters/libmsooxml/ooxml_pole.cpp:397:54: performance: Function parameter 'chain' should be passed by const reference. [passedByValue]
calligra-25.08.1/filters/libmso/pole.cpp:467:54: performance: Function parameter 'chain' should be passed by const reference. [passedByValue]
calligra-25.08.1/filters/words/msword-odf/wv2/src/textconverter.h:66:17: performance: Function 'toCode()' should return member 'm_toCode' by const reference. [returnByReference]

Some of these might be worth fixing.