From 36b34b3e635d6dbca421e32bf8b707f9b04e60a7 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 17 Oct 2016 16:44:01 +0200 Subject: [PATCH] declare constants const --- CGAL_Core/include/CGAL/CORE/poly/Poly.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CGAL_Core/include/CGAL/CORE/poly/Poly.h b/CGAL_Core/include/CGAL/CORE/poly/Poly.h index 49925cf8a6e..bd7e8f167b8 100644 --- a/CGAL_Core/include/CGAL/CORE/poly/Poly.h +++ b/CGAL_Core/include/CGAL/CORE/poly/Poly.h @@ -269,15 +269,15 @@ public: template < class NT > CORE_INLINE const Polynomial & Polynomial::polyZero() { - static Polynomial zeroP; + static const Polynomial zeroP; return zeroP; } template < class NT > CORE_INLINE const Polynomial & Polynomial::polyUnity() { - static NT c[] = {1}; - static Polynomial unityP(0, c); + static const NT c[] = {1}; + static const Polynomial unityP(0, c); return unityP; }