Cleanup: whitespace

This commit is contained in:
Campbell Barton
2018-05-11 07:55:41 +02:00
parent 33f3298e28
commit b5823c25f8
4 changed files with 10 additions and 8 deletions

View File

@@ -390,7 +390,8 @@ void DepsgraphRelationBuilder::begin_build()
{
}
void DepsgraphRelationBuilder::build_id(ID* id) {
void DepsgraphRelationBuilder::build_id(ID *id)
{
if (id == NULL) {
return;
}
@@ -2060,7 +2061,8 @@ void DepsgraphRelationBuilder::build_copy_on_write_relations()
*
* This is similar to what happens in ntree_hack_remap_pointers().
*/
void DepsgraphRelationBuilder::build_nested_datablock(ID *owner, ID *id) {
void DepsgraphRelationBuilder::build_nested_datablock(ID *owner, ID *id)
{
if (!DEG_depsgraph_use_copy_on_write()) {
return;
}

View File

@@ -73,7 +73,7 @@ DepsNodeFactory *deg_type_get_factory(const eDepsNode_Type type)
/* Stringified node types ---------------------------------- */
const char* nodeTypeAsString(eDepsNode_Type type)
const char *nodeTypeAsString(eDepsNode_Type type)
{
switch (type) {
#define STRINGIFY_TYPE(name) case DEG_NODE_TYPE_##name: return #name
@@ -110,7 +110,7 @@ const char* nodeTypeAsString(eDepsNode_Type type)
/* Stringified opcodes ------------------------------------- */
const char* operationCodeAsString(eDepsOperation_Code opcode)
const char *operationCodeAsString(eDepsOperation_Code opcode)
{
switch (opcode) {
#define STRINGIFY_OPCODE(name) case DEG_OPCODE_##name: return #name

View File

@@ -155,7 +155,7 @@ typedef enum eDepsNode_Type {
NUM_DEG_NODE_TYPES,
} eDepsNode_Type;
const char* nodeTypeAsString(eDepsNode_Type type);
const char *nodeTypeAsString(eDepsNode_Type type);
/* Identifiers for common operations (as an enum). */
typedef enum eDepsOperation_Code {
@@ -270,6 +270,6 @@ typedef enum eDepsOperation_Code {
DEG_NUM_OPCODES,
} eDepsOperation_Code;
const char* operationCodeAsString(eDepsOperation_Code opcode);
const char *operationCodeAsString(eDepsOperation_Code opcode);
} // namespace DEG

View File

@@ -92,7 +92,7 @@ typedef struct WORKBENCH_MaterialData {
float color[3];
int object_id;
int drawtype;
Image* ima;
Image *ima;
/* Linked shgroup for drawing */
DRWShadingGroup *shgrp;
@@ -127,6 +127,6 @@ void workbench_materials_solid_cache_populate(WORKBENCH_Data *vedata, Object *ob
void workbench_materials_cache_finish(WORKBENCH_Data *vedata);
/* workbench_studiolight.c */
void studiolight_update_world(int studio_light, WORKBENCH_UBO_World* wd);
void studiolight_update_world(int studio_light, WORKBENCH_UBO_World *wd);
#endif