[GIT] ppl/ppl(master): Avoided non-constant pointers to function.
Module: ppl/ppl Branch: master Commit: b23873fe14a7204ec856aae21209eaf1cc6ea3a9 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=b23873fe14a72... Author: Roberto Bagnara <bagnara@cs.unipr.it> Date: Mon Aug 20 15:49:20 2012 +0200 Avoided non-constant pointers to function. Detected by ECLAIR service funpntr. --- src/Scalar_Products_defs.hh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/Scalar_Products_defs.hh b/src/Scalar_Products_defs.hh index f58a816..4c001d7 100644 --- a/src/Scalar_Products_defs.hh +++ b/src/Scalar_Products_defs.hh @@ -214,7 +214,8 @@ public: private: //! The type of the scalar product sign function pointer. - typedef int (*SPS_type)(const Linear_Expression&, const Linear_Expression&); + typedef int (* const SPS_type)(const Linear_Expression&, + const Linear_Expression&); //! The scalar product sign function pointer. SPS_type sps_fp;
participants (1)
-
Roberto Bagnara