| 41 | }; |
| 42 | |
| 43 | struct AreaLine |
| 44 | { |
| 45 | AreaLine() |
| 46 | { |
| 47 | length = 0; |
| 48 | maxLength = DEFAULT_STRING_LENGTH; |
| 49 | data = startBuf; |
| 50 | prev = next = NULL; |
| 51 | lineExtra = lineStyle = 0; |
| 52 | } |
| 53 | |
| 54 | AreaChar startBuf[DEFAULT_STRING_LENGTH]; |
| 55 | AreaChar *data; |
| 56 | unsigned int length; |
| 57 | unsigned int maxLength; |
| 58 | |
| 59 | unsigned int lineStyle; |
| 60 | unsigned int lineExtra; |
| 61 | |
| 62 | AreaLine *prev, *next; |
| 63 | |
| 64 | static ObjectBlockPool<AreaLine, 32> *pool; |
| 65 | void* operator new(size_t size) |
| 66 | { |
| 67 | (void)size; |
| 68 | return pool->Create(); |
| 69 | } |
| 70 | void operator delete(void *ptr, size_t size) |
| 71 | { |
| 72 | (void)size; |
| 73 | pool->Destroy((AreaLine*)ptr); |
| 74 | } |
| 75 | }; |
| 76 | |
| 77 | ObjectBlockPool<AreaLine, 32>* AreaLine::pool = NULL; |
| 78 |
nothing calls this directly
no outgoing calls
no test coverage detected