What is the C++ way of calling 'Add Spline Mesh Component'?

Instead of bCreatedByConstructionScript, you should now set the CreationMethod property to EComponentCreationMethod::UserConstructionScript.

Epic should update their documentation faster.