(svn r18826) -Codechange: Unifiy return value of (SmallArray|FixedSizeArray)::(Append|AppendC) with other containers. (skidd13)
This commit is contained in:
@@ -74,7 +74,7 @@ public:
|
||||
/** allocate new data item from m_arr */
|
||||
FORCEINLINE Titem_ *CreateNewNode()
|
||||
{
|
||||
if (m_new_node == NULL) m_new_node = &m_arr.AppendC();
|
||||
if (m_new_node == NULL) m_new_node = m_arr.AppendC();
|
||||
return m_new_node;
|
||||
}
|
||||
|
||||
|
@@ -70,7 +70,7 @@ public:
|
||||
FORCEINLINE bool PfNodeCacheFetch(Node& n)
|
||||
{
|
||||
CacheKey key(n.GetKey());
|
||||
Yapf().ConnectNodeToCachedData(n, *new (&m_local_cache.Append()) CachedData(key));
|
||||
Yapf().ConnectNodeToCachedData(n, *new (m_local_cache.Append()) CachedData(key));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ struct CSegmentCostCacheT
|
||||
Tsegment *item = m_map.Find(key);
|
||||
if (item == NULL) {
|
||||
*found = false;
|
||||
item = new (&m_heap.Append()) Tsegment(key);
|
||||
item = new (m_heap.Append()) Tsegment(key);
|
||||
m_map.Push(*item);
|
||||
} else {
|
||||
*found = true;
|
||||
|
Reference in New Issue
Block a user