1515// This file contains copy of class LVFontLocalGlyphCacheA from cr3.2.31
1616
1717#include " lvfontglyphcache_a.h"
18- // #include "../../include/crlocks.h"
18+ #include " ../../include/crlocks.h"
1919
2020
2121void LVFontLocalGlyphCacheA::clear () {
22- // FONT_LOCAL_GLYPH_CACHE_GUARD
22+ FONT_LOCAL_GLYPH_CACHE_GUARD
2323 while (head) {
2424 LVFontGlyphCacheItemA *ptr = head;
2525 remove (ptr);
@@ -29,7 +29,7 @@ void LVFontLocalGlyphCacheA::clear() {
2929}
3030
3131LVFontGlyphCacheItemA *LVFontLocalGlyphCacheA::getByChar (lChar16 ch) {
32- // FONT_LOCAL_GLYPH_CACHE_GUARD
32+ FONT_LOCAL_GLYPH_CACHE_GUARD
3333 LVFontGlyphCacheItemA *ptr = head;
3434 for (; ptr; ptr = ptr->next_local ) {
3535 if (ptr->data .ch == ch) {
@@ -43,7 +43,7 @@ LVFontGlyphCacheItemA *LVFontLocalGlyphCacheA::getByChar(lChar16 ch) {
4343#if USE_HARFBUZZ==1
4444LVFontGlyphCacheItemA* LVFontLocalGlyphCacheA::getByIndex (lUInt32 index)
4545{
46- // FONT_LOCAL_GLYPH_CACHE_GUARD
46+ FONT_LOCAL_GLYPH_CACHE_GUARD
4747 LVFontGlyphCacheItemA *ptr = head;
4848 for (; ptr; ptr = ptr->next_local ) {
4949 if (ptr->data .gindex == index) {
@@ -56,7 +56,7 @@ LVFontGlyphCacheItemA* LVFontLocalGlyphCacheA::getByIndex(lUInt32 index)
5656#endif
5757
5858void LVFontLocalGlyphCacheA::put (LVFontGlyphCacheItemA *item) {
59- // FONT_LOCAL_GLYPH_CACHE_GUARD
59+ FONT_LOCAL_GLYPH_CACHE_GUARD
6060 global_cache->put (item);
6161 item->next_local = head;
6262 if (head)
@@ -68,7 +68,7 @@ void LVFontLocalGlyphCacheA::put(LVFontGlyphCacheItemA *item) {
6868
6969// / remove from list, but don't delete
7070void LVFontLocalGlyphCacheA::remove (LVFontGlyphCacheItemA *item) {
71- // FONT_LOCAL_GLYPH_CACHE_GUARD
71+ FONT_LOCAL_GLYPH_CACHE_GUARD
7272 if (item == head)
7373 head = item->next_local ;
7474 if (item == tail)
@@ -84,7 +84,7 @@ void LVFontLocalGlyphCacheA::remove(LVFontGlyphCacheItemA *item) {
8484}
8585
8686void LVFontGlobalGlyphCacheA::refresh (LVFontGlyphCacheItemA *item) {
87- // FONT_GLYPH_CACHE_GUARD
87+ FONT_GLYPH_CACHE_GUARD
8888 if (tail != item) {
8989 // move to head
9090 removeNoLock (item);
@@ -93,7 +93,7 @@ void LVFontGlobalGlyphCacheA::refresh(LVFontGlyphCacheItemA *item) {
9393}
9494
9595void LVFontGlobalGlyphCacheA::put (LVFontGlyphCacheItemA *item) {
96- // FONT_GLYPH_CACHE_GUARD
96+ FONT_GLYPH_CACHE_GUARD
9797 putNoLock (item);
9898}
9999
@@ -119,7 +119,7 @@ void LVFontGlobalGlyphCacheA::putNoLock(LVFontGlyphCacheItemA *item) {
119119}
120120
121121void LVFontGlobalGlyphCacheA::remove (LVFontGlyphCacheItemA *item) {
122- // FONT_GLYPH_CACHE_GUARD
122+ FONT_GLYPH_CACHE_GUARD
123123 removeNoLock (item);
124124}
125125
@@ -140,7 +140,7 @@ void LVFontGlobalGlyphCacheA::removeNoLock(LVFontGlyphCacheItemA *item) {
140140}
141141
142142void LVFontGlobalGlyphCacheA::clear () {
143- // FONT_GLYPH_CACHE_GUARD
143+ FONT_GLYPH_CACHE_GUARD
144144 while (head) {
145145 LVFontGlyphCacheItemA *ptr = head;
146146 remove (ptr);
0 commit comments