McDonald’s comparable sales beat Wall Street’s expectations for the second straight quarter,