Section 31.  The salary and retirement benefits of an attorney general, district attorney, sheriff, coroner, or clerk of the district court shall not be diminished during his term of office.