diff options
Diffstat (limited to 'yapf')
-rw-r--r-- | yapf/autocopyptr.hpp | 2 | ||||
-rw-r--r-- | yapf/binaryheap.hpp | 2 | ||||
-rw-r--r-- | yapf/blob.hpp | 6 | ||||
-rw-r--r-- | yapf/countedptr.hpp | 2 | ||||
-rw-r--r-- | yapf/crc32.hpp | 2 | ||||
-rw-r--r-- | yapf/yapf.hpp | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/yapf/autocopyptr.hpp b/yapf/autocopyptr.hpp index 2206ca00f..46c727789 100644 --- a/yapf/autocopyptr.hpp +++ b/yapf/autocopyptr.hpp @@ -19,7 +19,7 @@ class CAutoCopyPtrT { protected: typedef Tdata_ Tdata; - struct CItem { + struct CItem { int m_ref_cnt; ///< reference counter Tdata m_data; ///< custom data itself diff --git a/yapf/binaryheap.hpp b/yapf/binaryheap.hpp index b7b8ea631..9537dff63 100644 --- a/yapf/binaryheap.hpp +++ b/yapf/binaryheap.hpp @@ -142,7 +142,7 @@ FORCEINLINE void CBinaryHeapT<Titem_>::RemoveHead() child = gap * 2; } // move last item to the proper place - if (m_size > 0) m_items[gap] = &new_item; + if (m_size > 0) m_items[gap] = &new_item; CheckConsistency(); } diff --git a/yapf/blob.hpp b/yapf/blob.hpp index 0a60930cf..6cc460e41 100644 --- a/yapf/blob.hpp +++ b/yapf/blob.hpp @@ -21,7 +21,7 @@ FORCEINLINE void MemCpyT(Titem_* d, const Titem_* s, int num_items = 1) - no thread synchronization at all */ class CBlobBaseSimple { protected: - struct CHdr { + struct CHdr { int m_size; // actual blob size in bytes int m_max_size; // maximum (allocated) size in bytes }; @@ -66,7 +66,7 @@ public: assert(p != NULL); if (num_bytes > 0) { memcpy(GrowRawSize(num_bytes), p, num_bytes); - } else { + } else { assert(num_bytes >= 0); } } @@ -116,7 +116,7 @@ public: // ask allocation policy for some reasonable block size int alloc_size = AllocPolicy(min_alloc_size); // allocate new block - CHdr* pNewHdr = RawAlloc(alloc_size); + CHdr* pNewHdr = RawAlloc(alloc_size); // setup header pNewHdr->m_size = RawSize(); pNewHdr->m_max_size = alloc_size - (sizeof(CHdr) + Ttail_reserve); diff --git a/yapf/countedptr.hpp b/yapf/countedptr.hpp index 7d9f61fc2..1ac986cf5 100644 --- a/yapf/countedptr.hpp +++ b/yapf/countedptr.hpp @@ -74,7 +74,7 @@ public: FORCEINLINE bool operator == (const CCountedPtr& sp) const {return m_pT == sp.m_pT;} /** yet another way how to test for NULL value */ - FORCEINLINE bool operator != (const CCountedPtr& sp) const {return m_pT != sp.m_pT;} + FORCEINLINE bool operator != (const CCountedPtr& sp) const {return m_pT != sp.m_pT;} /** assign pointer w/o incrementing ref count */ FORCEINLINE void Attach(Tcls* pT) {Release(); m_pT = pT;} diff --git a/yapf/crc32.hpp b/yapf/crc32.hpp index b03ff5088..6cfe0c2bf 100644 --- a/yapf/crc32.hpp +++ b/yapf/crc32.hpp @@ -41,7 +41,7 @@ struct CCrc32 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, - 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, + 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, diff --git a/yapf/yapf.hpp b/yapf/yapf.hpp index a35140be8..f9c3f4720 100644 --- a/yapf/yapf.hpp +++ b/yapf/yapf.hpp @@ -77,7 +77,7 @@ struct CPerfStartReal { CPerformanceTimer* m_pperf; - FORCEINLINE CPerfStartReal(CPerformanceTimer& perf) : m_pperf(&perf) {if (m_pperf != NULL) m_pperf->Start();} + FORCEINLINE CPerfStartReal(CPerformanceTimer& perf) : m_pperf(&perf) {if (m_pperf != NULL) m_pperf->Start();} FORCEINLINE ~CPerfStartReal() {Stop();} FORCEINLINE void Stop() {if (m_pperf != NULL) {m_pperf->Stop(); m_pperf = NULL;}} }; |