On Friday, 23 October 2020 05:16:08 PDT Tamás Nagy wrote:
> QSharedPointer m_Validator;
> }
>
> My custom program:
>
> if(di.Validator()->isNull())
Are you sure -> is the right operator here?
You didn't give us the implementation of this Validator function, so we have
to guess. If it is:
Hi,
On 23/10/2020 14:16, Tamás Nagy wrote:
class A
{
public:
private:
QSharedPointer m_Validator;
}
My custom program:
if(di.Validator()->isNull())
{
// unfortunately the di.Validator() is null
// some A-s in the Map can have nullptr as Validator.
Hi,
class A
{
public:
private:
QSharedPointer m_Validator;
}
My custom program:
if(di.Validator()->isNull())
{
// unfortunately the di.Validator() is null
// some A-s in the Map can have nullptr as Validator.
if(auto validator = di.Validator()) /