summaryrefslogtreecommitdiff
path: root/x11/qt4-creator/patches/patch-src_libs_3rdparty_botan_build_botan_secmem.h
blob: 58ec2e8ebcf1c6e3e320701d456c115869349657 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
$NetBSD: patch-src_libs_3rdparty_botan_build_botan_secmem.h,v 1.1 2012/11/19 23:13:48 joerg Exp $

--- src/libs/3rdparty/botan/build/botan/secmem.h.orig	2012-11-19 11:01:09.000000000 +0000
+++ src/libs/3rdparty/botan/build/botan/secmem.h
@@ -307,7 +307,7 @@ class MemoryVector : public MemoryRegion
       * @return a reference to *this
       */
       MemoryVector<T>& operator=(const MemoryRegion<T>& in)
-         { if(this != &in) set(in); return (*this); }
+         { if(this != &in) this->set(in); return (*this); }
 
       /**
       * Create a buffer of the specified length.
@@ -323,13 +323,13 @@ class MemoryVector : public MemoryRegion
       * @param n the size of the arry in
       */
       MemoryVector(const T in[], u32bit n)
-         { MemoryRegion<T>::init(false); set(in, n); }
+         { MemoryRegion<T>::init(false); this->set(in, n); }
 
       /**
       * Copy constructor.
       */
       MemoryVector(const MemoryRegion<T>& in)
-         { MemoryRegion<T>::init(false); set(in); }
+         { MemoryRegion<T>::init(false); this->set(in); }
 
       /**
       * Create a buffer whose content is the concatenation of two other
@@ -338,7 +338,7 @@ class MemoryVector : public MemoryRegion
       * @param in2 the contents to be appended to in1
       */
       MemoryVector(const MemoryRegion<T>& in1, const MemoryRegion<T>& in2)
-         { MemoryRegion<T>::init(false); set(in1); append(in2); }
+         { MemoryRegion<T>::init(false); this->set(in1); this->append(in2); }
    };
 
 /**
@@ -359,7 +359,7 @@ class SecureVector : public MemoryRegion
       * @return a reference to *this
       */
       SecureVector<T>& operator=(const MemoryRegion<T>& in)
-         { if(this != &in) set(in); return (*this); }
+         { if(this != &in) this->set(in); return (*this); }
 
       /**
       * Create a buffer of the specified length.
@@ -375,7 +375,7 @@ class SecureVector : public MemoryRegion
       * @param n the size of the array in
       */
       SecureVector(const T in[], u32bit n)
-         { MemoryRegion<T>::init(true); set(in, n); }
+         { MemoryRegion<T>::init(true); this->set(in, n); }
 
       /**
       * Create a buffer with contents specified contents.
@@ -383,7 +383,7 @@ class SecureVector : public MemoryRegion
       * copied into the newly created buffer.
       */
       SecureVector(const MemoryRegion<T>& in)
-         { MemoryRegion<T>::init(true); set(in); }
+         { MemoryRegion<T>::init(true); this->set(in); }
 
       /**
       * Create a buffer whose content is the concatenation of two other
@@ -392,7 +392,7 @@ class SecureVector : public MemoryRegion
       * @param in2 the contents to be appended to in1
       */
       SecureVector(const MemoryRegion<T>& in1, const MemoryRegion<T>& in2)
-         { MemoryRegion<T>::init(true); set(in1); append(in2); }
+         { MemoryRegion<T>::init(true); this->set(in1); this->append(in2); }
    };
 
 /**
@@ -413,7 +413,7 @@ class SecureBuffer : public MemoryRegion
       * @return a reference to *this
       */
       SecureBuffer<T,L>& operator=(const SecureBuffer<T,L>& in)
-         { if(this != &in) set(in); return (*this); }
+         { if(this != &in) this->set(in); return (*this); }
 
       /**
       * Create a buffer of the length L.
@@ -427,10 +427,10 @@ class SecureBuffer : public MemoryRegion
       * @param n the size of the array in
       */
       SecureBuffer(const T in[], u32bit n)
-         { MemoryRegion<T>::init(true, L); copy(in, n); }
+         { MemoryRegion<T>::init(true, L); this->copy(in, n); }
    private:
       SecureBuffer<T, L>& operator=(const MemoryRegion<T>& in)
-         { if(this != &in) set(in); return (*this); }
+         { if(this != &in) this->set(in); return (*this); }
    };
 
 }