Hi ,

Below is the Klocwork error thrown while using Qt5 with the application
code:

Void function returns value VOIDRET pointing to the below code in
qtbase/src/concurrent/qtconcurrentfunctionwrappers.h.

template <class C, class U>
    inline void operator()(C &c, U &&u) const
    {
        return c.push_back(u);
    }

Could you please let me know if the below singleton class code would
trigger above error and be ignored or not?

QSharedPointer<MyClass> MyClass::getInstance( void )
{

if(m_Sharedptr.isNull() )
{
m_Sharedptr = ( QSharedPointer<MyClass> ) new MyClass();
....
}
Q_CHECK_PTR( m_Sharedptr.data() );

return m_Sharedptr;
}

Best Regards,
Ramakanth
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to