Skip to content

Commit 588a06c

Browse files
committed
style(w3dview): split single-line if statements to multi-line format
1 parent 53868c6 commit 588a06c

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
@@ -53,8 +53,9 @@ AssetInfoClass::Initialize (void)
5353

5454
// Assume we are wrapping an instance as apposed to an asset 'name'.
5555
RenderObjClass *prender_obj = m_pRenderObj.Peek();
56-
if (prender_obj)
56+
if (prender_obj) {
5757
prender_obj->Add_Ref();
58+
}
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
@@ -93,8 +93,9 @@ EmitterInstanceListClass::Add_Emitter (ParticleEmitterClass *emitter)
9393
//
9494
// Add this emitter to the list and put a hold on its reference
9595
//
96-
if (emitter)
96+
if (emitter) {
9797
emitter->Add_Ref();
98+
}
9899
m_List.Add (emitter);
99100
}
100101

0 commit comments

Comments
 (0)