Cleanup: style

This commit is contained in:
Campbell Barton
2018-11-06 12:39:40 +11:00
parent a22167b9a2
commit 29dfe9a614
2 changed files with 2 additions and 2 deletions

View File

@@ -404,7 +404,7 @@ bGPDlayer *BKE_gpencil_layer_addnew(bGPdata *gpd, const char *name, bool setacti
}
else {
/* if active layer, add after that layer */
BLI_insertlinkafter(&gpd->layers,gpl_active, gpl);
BLI_insertlinkafter(&gpd->layers, gpl_active, gpl);
}
/* annotation vs GP Object behaviour is slightly different */

View File

@@ -461,7 +461,7 @@ static void fastheap_down(FastHeap *heap, uint start_i, const FastHeapNode *init
#if 1
/* The compiler isn't smart enough to realize that all computations
* using index here can be modified to work with byte offset. */
uint8_t *const tree_buf = (uint8_t*)heap->tree;
uint8_t * const tree_buf = (uint8_t *)heap->tree;
#define OFFSET(i) (i * (uint)sizeof(FastHeapNode))
#define NODE(offset) (*(FastHeapNode*)(tree_buf + (offset)))