This is an automated email from the ASF dual-hosted git repository.

borisk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git


The following commit(s) were added to refs/heads/master by this push:
     new 53c040181 Avoid shadowing argument type with argument name
53c040181 is described below

commit 53c0401812bfe5523594c1180f5ac7c758a2eaf7
Author: Boris Kolpackov <bo...@codesynthesis.com>
AuthorDate: Mon Oct 21 14:45:27 2024 +0200

    Avoid shadowing argument type with argument name
    
    Some compilers issue a warning for such a construct (-Wshadow).
---
 src/xercesc/util/regx/Token.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/xercesc/util/regx/Token.hpp b/src/xercesc/util/regx/Token.hpp
index c723e04ed..73c8021e0 100644
--- a/src/xercesc/util/regx/Token.hpp
+++ b/src/xercesc/util/regx/Token.hpp
@@ -94,7 +94,7 @@ public:
     // -----------------------------------------------------------------------
     //  Setter methods
     // -----------------------------------------------------------------------
-    void setTokenType(const tokType tokType);
+    void setTokenType(const tokType type);
     virtual void setMin(const int minVal);
     virtual void setMax(const int maxVal);
 
@@ -193,9 +193,9 @@ inline XMLInt32 Token::getChar() const {
 // ---------------------------------------------------------------------------
 //  Token: setter methods
 // ---------------------------------------------------------------------------
-inline void Token::setTokenType(const Token::tokType tokType) {
+inline void Token::setTokenType(const Token::tokType type) {
     
-    fTokenType = tokType;
+    fTokenType = type;
 }
 
 inline void Token::setMax(const int) {


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to