[PPL-devel] [GIT] ppl/ppl(master): Avoid outer-scope name hiding.

Enea Zaffanella zaffanella at cs.unipr.it
Thu Aug 16 17:30:27 CEST 2012


Module: ppl/ppl
Branch: master
Commit: 5d14a674e3ee1b3568dcb62ca514a3d94a2c1881
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=5d14a674e3ee1b3568dcb62ca514a3d94a2c1881

Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date:   Thu Aug 16 11:29:45 2012 +0200

Avoid outer-scope name hiding.
Detected by ECLAIR service declhidn.

---

 src/Grid_nonpublic.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Grid_nonpublic.cc b/src/Grid_nonpublic.cc
index 99ba2b1..9883856 100644
--- a/src/Grid_nonpublic.cc
+++ b/src/Grid_nonpublic.cc
@@ -423,8 +423,8 @@ PPL::Grid::max_min(const Linear_Expression& expr,
 
     included = true;
     if (point != 0) {
-      Linear_Expression expr(gen.expression());
-      *point = Generator::point(expr, gen.divisor());
+      Linear_Expression g_expr(gen.expression());
+      *point = Generator::point(g_expr, gen.divisor());
     }
     return true;
   }




More information about the PPL-devel mailing list