Skip to content

Commit f060ce5

Browse files
committed
refactor(w3dview): fix code formatting for if statements with Add_Ref calls
1 parent 834a977 commit f060ce5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Core/Tools/W3DView/AssetInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ AssetInfoClass::Initialize (void)
5454

5555
// Assume we are wrapping an instance as apposed to an asset 'name'.
5656
RenderObjClass *prender_obj = m_pRenderObj;
57-
if (prender_obj) prender_obj->Add_Ref();
57+
if (prender_obj)
58+
prender_obj->Add_Ref();
5859

5960
// If we are wrapping an asset name, then create an instance of it.
6061
if (prender_obj == NULL) {

Core/Tools/W3DView/EmitterInstanceList.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ EmitterInstanceListClass::Add_Emitter (ParticleEmitterClass *emitter)
9494
//
9595
// Add this emitter to the list and put a hold on its reference
9696
//
97-
if (emitter) emitter->Add_Ref();
97+
if (emitter)
98+
emitter->Add_Ref();
9899
m_List.Add (emitter);
99100
}
100101

0 commit comments

Comments
 (0)