(svn r18826) -Codechange: Unifiy return value of (SmallArray|FixedSizeArray)::(Append|AppendC) with other containers. (skidd13)

This commit is contained in:
frosch
2010-01-16 14:22:19 +00:00
parent 757c9667ce
commit 556f449f0b
4 changed files with 8 additions and 8 deletions

View File

@@ -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;
}

View File

@@ -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;