Modernize atom enums
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / gpp_atomtype.cpp
index 1361ce29118efcda7c7375e4f835e143c0c4572f..b832adf2d0a3cbf00c3ddd8eac245f2853731c39 100644 (file)
@@ -130,7 +130,7 @@ std::optional<real> PreprocessingAtomTypes::atomChargeFromAtomType(int nt) const
     return isSet(nt) ? std::make_optional(impl_->types[nt].atom_.q) : std::nullopt;
 }
 
-std::optional<int> PreprocessingAtomTypes::atomParticleTypeFromAtomType(int nt) const
+std::optional<ParticleType> PreprocessingAtomTypes::atomParticleTypeFromAtomType(int nt) const
 {
     return isSet(nt) ? std::make_optional(impl_->types[nt].atom_.ptype) : std::nullopt;
 }