McDonald’s Corp., reeling from an industrywide restaurant slump and slowing