I don't think this is equivalent.

I think it needs to be

    !srcFormat.quote || *srcFormat.quote.

Even better would be

    srcFormat.hasQuote();

with the implementation as a const member of the class.