Menu

Why is unusedScopedObject an error?

2015-06-15
2015-06-25
  • Sander Bouwhuis

    Sander Bouwhuis - 2015-06-15

    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
  • Daniel Marjamäki

    Related ticket:

    http://trac.cppcheck.net/ticket/5671

    I don't think the message should be an "error" message at all.

     
  • Sander Bouwhuis

    Sander Bouwhuis - 2015-06-23

    So it's no longer an error with v1.70 but a style warning?

    Thanks.

     
    • amaigil2

      amaigil2 - 2015-06-25

      Yes, severity will be reduced to style for 1.70.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.