Bug 354363

Summary: Writing-to-temporary should not warn on QDomNode::firstChild()
Product: [Developer tools] clazy Reporter: Nyall Dawson <nyall.dawson>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nyall Dawson 2015-10-25 21:14:09 UTC
The writing-to-temporary check warns when the result of QDomNode::firstChild() is modified. However this is valid, as the QomNode docs state:

"changing the returned node will also change the node in the document tree".
Comment 1 Sergio Martins 2015-10-26 21:32:49 UTC
Git commit f4e5ec481a958ac4e253cf80bd8074edd37d5f5a by Sergio Martins.
Committed on 26/10/2015 at 21:31.
Pushed by smartins into branch 'master'.

writing-to-temporary: Don't warn on QDomNode

It's copies are shallow.

M  +2    -1    checks/writingtotemporary.cpp
M  +11   -0    tests/writing-to-temporary/main.cpp

http://commits.kde.org/clazy/f4e5ec481a958ac4e253cf80bd8074edd37d5f5a