I regularly use a construction like this:
// ... CMyClass(pMyObject, i32SomeParam); // ...
The processing all happens either in the constructor or in functions called from the constructor. Why do I get the unusedScopedObject error?
Related ticket:
http://trac.cppcheck.net/ticket/5671
I don't think the message should be an "error" message at all.
So it's no longer an error with v1.70 but a style warning?
Thanks.
Yes, severity will be reduced to style for 1.70.
Log in to post a comment.
I regularly use a construction like this:
// ...
CMyClass(pMyObject, i32SomeParam);
// ...
The processing all happens either in the constructor or in functions called from the constructor.
Why do I get the unusedScopedObject error?
Last edit: Sander Bouwhuis 2015-06-15
Related ticket:
http://trac.cppcheck.net/ticket/5671
I don't think the message should be an "error" message at all.
So it's no longer an error with v1.70 but a style warning?
Thanks.
Yes, severity will be reduced to style for 1.70.