To model and study local magnetic-field enhancements in a solar flux rope we consider the magnetic field in its interior as a superposition of two linear (constant alpha) force-free magnetic-field distributions, viz. a global one, which is locally similar to a part of the cylinder, and a local torus-shaped magnetic distribution. The newly derived solution for a toroid with an aspect ratio close to unity is applied. The symmetry axis of the toroid and that of the cylinder may or may not coincide. Both the large and small radii of the toroid are set equal to the cylinder's radius. The total magnetic field distribution yields a flux tube which has a variable diameter with local minima and maxima. In principle, this approach can be used for the interpretation and analysis of solar-limb observations of coronal loops.