]> git.pld-linux.org Git - packages/crnlib.git/blob - crnlib-c++.patch
- updated URL
[packages/crnlib.git] / crnlib-c++.patch
1 --- crunch/crnlib/crn_sparse_array.h.orig       2014-05-14 19:48:47.133895619 +0200
2 +++ crunch/crnlib/crn_sparse_array.h    2014-05-14 21:54:04.600405597 +0200
3 @@ -355,7 +355,7 @@
4  \r
5        inline T* alloc_group(bool nofail = false)\r
6        {\r
7 -         T* p = static_cast<T*>(alloc_space(N * sizeof(T)));\r
8 +         T* p = static_cast<T*>(this->alloc_space(N * sizeof(T)));\r
9  \r
10           if (!p)\r
11           {\r
12 @@ -365,7 +365,7 @@
13              CRNLIB_FAIL("Out of memory");\r
14           }\r
15  \r
16 -         construct_group(p);\r
17 +         this->construct_group(p);\r
18  \r
19           m_num_active_groups++;\r
20  \r
21 @@ -379,20 +379,20 @@
22              CRNLIB_ASSERT(m_num_active_groups);\r
23              m_num_active_groups--;\r
24  \r
25 -            destruct_group(p);\r
26 +            this->destruct_group(p);\r
27  \r
28 -            free_space(p);\r
29 +            this->free_space(p);\r
30           }\r
31        }\r
32  \r
33        inline void init_default()\r
34        {\r
35 -         construct_element(reinterpret_cast<T*>(m_default));\r
36 +         this->construct_element(reinterpret_cast<T*>(m_default));\r
37        }\r
38  \r
39        inline void deinit_default()\r
40        {\r
41 -         destruct_element(reinterpret_cast<T*>(m_default));\r
42 +         this->destruct_element(reinterpret_cast<T*>(m_default));\r
43        }\r
44     };\r
45  \r
This page took 0.083681 seconds and 3 git commands to generate.