Cosmetic compositions containing a) at least one first quaternary ammonium compound from the group of quaternized collagen hydrolysates; b) at least one second quaternary ammonium compound which differs from a), c) at least one film-forming polymer, d) water are suitable as heat-protection agents in the thermally assisted temporary deformation of keratinic fibers.