Skip to content

Commit

Permalink
Merge pull request #27421 from smuzaffar/gcc9-warnings-fix1
Browse files Browse the repository at this point in the history
[GCC9] fix warning about initializing base class in copy constructor
  • Loading branch information
cmsbuild committed Jul 3, 2019
2 parents 7d456b8 + 0f00f19 commit fddf1b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions DataFormats/GeometrySurface/interface/Surface.h
Expand Up @@ -56,10 +56,16 @@ class Surface : public ReferenceCountedInConditions, public GloballyPositioned<f
: Base(pos, rot), theMediumProperties(mp), theBounds(bounds) {}

Surface(const Surface& iSurface)
: Base(iSurface), theMediumProperties(iSurface.theMediumProperties), theBounds(iSurface.theBounds) {}
: ReferenceCountedInConditions(iSurface),
Base(iSurface),
theMediumProperties(iSurface.theMediumProperties),
theBounds(iSurface.theBounds) {}

Surface(Surface&& iSurface)
: Base(iSurface), theMediumProperties(iSurface.theMediumProperties), theBounds(std::move(iSurface.theBounds)) {}
: ReferenceCountedInConditions(iSurface),
Base(iSurface),
theMediumProperties(iSurface.theMediumProperties),
theBounds(std::move(iSurface.theBounds)) {}

public:
/** Returns the side of the surface on which the point is.
Expand Down

0 comments on commit fddf1b4

Please sign in to comment.