I get the perofrmance notification "Variable 'm_message' is assigned in constructor body. Consider performing initialization in initialization list." for the following code (the stringstream is little bit more complex in reality but I reduced the problem to this code):
Did you get the performance notification for exactly the code you posted here too?
I do not get any message for the code with the current development code.
To me it looks like a false positive, i do not think that can be realized easily with initialization in the initialization list. Maybe it was a false positive that got fixed now.
Can you verify it with a current version of Cppcheck?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get the perofrmance notification "Variable 'm_message' is assigned in constructor body. Consider performing initialization in initialization list." for the following code (the stringstream is little bit more complex in reality but I reduced the problem to this code):
But how can I solve this issue?
Did you get the performance notification for exactly the code you posted here too?
I do not get any message for the code with the current development code.
To me it looks like a false positive, i do not think that can be realized easily with initialization in the initialization list. Maybe it was a false positive that got fixed now.
Can you verify it with a current version of Cppcheck?