You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/01/25 20:17:12 UTC
cvs commit: xml-xerces/c/src/util XercesDefs.hpp
tng 01/01/25 11:17:10
Modified: c/src/internal XMLReader.hpp
c/src/util XercesDefs.hpp
Log:
const should be used instead of static const. Fixed by Khaled Noaman.
Revision Changes Path
1.14 +4 -1 xml-xerces/c/src/internal/XMLReader.hpp
Index: XMLReader.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/internal/XMLReader.hpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XMLReader.hpp 2000/07/25 22:33:05 1.13
+++ XMLReader.hpp 2001/01/25 19:16:58 1.14
@@ -56,6 +56,9 @@
/*
* $Log: XMLReader.hpp,v $
+ * Revision 1.14 2001/01/25 19:16:58 tng
+ * const should be used instead of static const. Fixed by Khaled Noaman.
+ *
* Revision 1.13 2000/07/25 22:33:05 aruna1
* Char definitions in XMLUni moved to XMLUniDefs
*
@@ -555,7 +558,7 @@
inline bool XMLReader::isXMLLetter(const XMLCh toCheck)
{
- static const XMLByte ourMask = gBaseCharMask | gLetterCharMask;
+ const XMLByte ourMask = gBaseCharMask | gLetterCharMask;
return ((fgCharCharsTable[toCheck] & ourMask) != 0);
}
1.11 +8 -5 xml-xerces/c/src/util/XercesDefs.hpp
Index: XercesDefs.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/XercesDefs.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XercesDefs.hpp 2001/01/12 22:09:07 1.10
+++ XercesDefs.hpp 2001/01/25 19:17:06 1.11
@@ -56,6 +56,9 @@
/*
* $Log: XercesDefs.hpp,v $
+ * Revision 1.11 2001/01/25 19:17:06 tng
+ * const should be used instead of static const. Fixed by Khaled Noaman.
+ *
* Revision 1.10 2001/01/12 22:09:07 tng
* Various update for Xerces 1.4
*
@@ -148,11 +151,11 @@
// can be used by various per-compiler headers below.
// ---------------------------------------------------------------------------
#define Xerces_DLLVersionStr "1_4"
-static const char* const gXercesVersionStr = "1_4";
-static const char* const gXercesFullVersionStr = "1_4_0";
-static const unsigned int gXercesMajVersion = 1;
-static const unsigned int gXercesMinVersion = 4;
-static const unsigned int gXercesRevision = 0;
+const char* const gXercesVersionStr = "1_4";
+const char* const gXercesFullVersionStr = "1_4_0";
+const unsigned int gXercesMajVersion = 1;
+const unsigned int gXercesMinVersion = 4;
+const unsigned int gXercesRevision = 0;
// ---------------------------------------------------------------------------