summaryrefslogtreecommitdiff
blob: 6b3a46c1342e49fc96065c7e9022083fa16edfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Fix error: type ‘struct NameCompareFunctor’ violates the C++ One Definition Rule [-Werror=odr]

Bug: https://bugs.gentoo.org/856097

--- a/src/xalanc/PlatformSupport/AttributesImpl.cpp
+++ b/src/xalanc/PlatformSupport/AttributesImpl.cpp
@@ -253,6 +253,9 @@
 
 
 
+namespace
+{
+
 struct NameCompareFunctor
 {
     NameCompareFunctor(const XMLCh*     theQName) :
@@ -271,6 +274,8 @@
     const XMLCh* const  m_qname;
 };
 
+}	// --- namespace
+
 
 
 struct URIAndLocalNameCompareFunctor
--- a/src/xalanc/PlatformSupport/AttributeListImpl.cpp
+++ b/src/xalanc/PlatformSupport/AttributeListImpl.cpp
@@ -242,6 +242,9 @@
 
 
 
+namespace
+{
+
 struct NameCompareFunctor
 {
     NameCompareFunctor(const XMLCh*     theName) :
@@ -260,6 +263,8 @@
     const XMLCh* const  m_name;
 };
 
+}	// --- namespace
+
 
 
 const XMLCh*