On adiabatic changes of a system in connection with the quantum theory