File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,31 @@ The following files have been copied to `External/tinyxml2`:
14
14
- ` LICENSE.txt `
15
15
- ` readme.txt `
16
16
17
+ ### Applied the following patch to hide leaking consts
18
+
19
+ ```
20
+ diff --git a/External/tinyxml2/tinyxml2.cpp b/External/tinyxml2/tinyxml2.cpp
21
+ index 083f54b..db7b53b 100644
22
+ --- a/External/tinyxml2/tinyxml2.cpp
23
+ +++ b/External/tinyxml2/tinyxml2.cpp
24
+ @@ -119,6 +119,8 @@ distribution.
25
+ #define TIXML_FTELL ftell
26
+ #endif
27
+
28
+ +namespace
29
+ +{
30
+
31
+ static const char LINE_FEED = static_cast<char>(0x0a); // all line endings are normalized to LF
32
+ static const char LF = LINE_FEED;
33
+ @@ -135,6 +137,8 @@ static const unsigned char TIXML_UTF_LEAD_0 = 0xefU;
34
+ static const unsigned char TIXML_UTF_LEAD_1 = 0xbbU;
35
+ static const unsigned char TIXML_UTF_LEAD_2 = 0xbfU;
36
+
37
+ +}
38
+ +
39
+ namespace tinyxml2
40
+ {
41
+ ```
17
42
## Usage
18
43
` tinyxml2 ` is referenced by source and built together with the target.
19
44
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ distribution.
119
119
#define TIXML_FTELL ftell
120
120
#endif
121
121
122
+ namespace
123
+ {
122
124
123
125
static const char LINE_FEED = static_cast <char >(0x0a ); // all line endings are normalized to LF
124
126
static const char LF = LINE_FEED;
@@ -135,6 +137,8 @@ static const unsigned char TIXML_UTF_LEAD_0 = 0xefU;
135
137
static const unsigned char TIXML_UTF_LEAD_1 = 0xbbU ;
136
138
static const unsigned char TIXML_UTF_LEAD_2 = 0xbfU ;
137
139
140
+ }
141
+
138
142
namespace tinyxml2
139
143
{
140
144
You can’t perform that action at this time.
0 commit comments