sentences:  Same-sex sexual activity was decriminalised nationwide in 1942 with the introduction of a national criminal code.Some cantons had legalized same-sex sexual activity previously.The cantons of Geneva, Ticino, Vaud and Valais had done so in 1798 by adopting the Napoleonic Code.