This is an automated email from the ASF dual-hosted git repository.
borisk pushed a commit to branch xerces-3.3
in repository https://gitbox.apache.org/repos/asf/xerces-c.git
The following commit(s) were added to refs/heads/xerces-3.3 by this push:
new 326252044 Avoid shadowing argument type with argument name
326252044 is described below
commit 326252044b4455062c255649fd72d5c48545284d
Author: Boris Kolpackov <[email protected]>
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 80507266a..6164a6db2 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: [email protected]
For additional commands, e-mail: [email protected]