Replace with

FileAssociatedShader* phongLightingShad = new FileAssociatedShader(...);
m_flat->attach(phongLightingShad);

For more info read comments for line 126