Don't need the ternaries here. saltHash and pwHash will be null anyways which means a null QVariant is constructed automatically.