Barcelona, 1874 - Barcelona, 1945