[gnome-commander/ConvertWarningsToErrors] Fix for variable shadowing



commit 48b3ad3bfcdede71d988321fa7eb67f130b93814
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Apr 22 09:28:00 2017 +0200

    Fix for variable shadowing

 src/filter.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/filter.cc b/src/filter.cc
index da2fa59..b7dac5e 100644
--- a/src/filter.cc
+++ b/src/filter.cc
@@ -66,12 +66,12 @@ Filter::~Filter()
 
 gboolean Filter::match(const gchar *text)
 {
-    static regmatch_t match;
+    static regmatch_t _match;
 
     switch (type)
     {
         case TYPE_REGEX:
-            return regexec (re_exp, text, 1, &match, 0) == 0;
+            return regexec (re_exp, text, 1, &_match, 0) == 0;
 
         case TYPE_FNMATCH:
             return fnmatch (fn_exp, text, fn_flags) == 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]