diff --git a/Code/Mantid/MantidQt/SliceViewer/src/PhysicalCrossPeak.cpp b/Code/Mantid/MantidQt/SliceViewer/src/PhysicalCrossPeak.cpp index a614badde4088780eb72a98f1711209a935acb5b..79a194dee6978e79c3ae59f1545bf5ada1249eff 100644 --- a/Code/Mantid/MantidQt/SliceViewer/src/PhysicalCrossPeak.cpp +++ b/Code/Mantid/MantidQt/SliceViewer/src/PhysicalCrossPeak.cpp @@ -64,7 +64,7 @@ namespace MantidQt */ MantidQt::SliceViewer::CrossPeakPrimitives PhysicalCrossPeak::draw(const double& windowHeight, const double& windowWidth) const { - CrossPeakPrimitives drawingObjects; + CrossPeakPrimitives drawingObjects = {}; if(isViewable()) { const int halfCrossHeight = int(windowHeight * m_crossViewFraction); diff --git a/Code/Mantid/MantidQt/SliceViewer/src/PhysicalSphericalPeak.cpp b/Code/Mantid/MantidQt/SliceViewer/src/PhysicalSphericalPeak.cpp index 71a4904500e035e8b00e7544ec10b652f01c8e83..d6e5240f04667fdc216322c16810da4c21312eeb 100644 --- a/Code/Mantid/MantidQt/SliceViewer/src/PhysicalSphericalPeak.cpp +++ b/Code/Mantid/MantidQt/SliceViewer/src/PhysicalSphericalPeak.cpp @@ -84,7 +84,7 @@ namespace MantidQt */ MantidQt::SliceViewer::SphericalPeakPrimitives PhysicalSphericalPeak::draw(const double& windowHeight, const double& windowWidth, const double& viewWidth, const double& viewHeight) const { - SphericalPeakPrimitives drawingObjects; + SphericalPeakPrimitives drawingObjects = {}; if(this->isViewable()) { // Scale factor for going from viewX to windowX