Skip to content

Commit 9f39cb3

Browse files
committed
Code style fixes
Automated fixes for code style.
1 parent 53fc9a0 commit 9f39cb3

4 files changed

Lines changed: 28 additions & 30 deletions

File tree

src/CLR/CorLib/corlib_native_System_ReadOnlySpan_1.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,11 @@ HRESULT Library_corlib_native_System_ReadOnlySpan_1::_ctor___VOID__VOIDptr__I4(C
6565
}
6666

6767
// check if T is a reference type or contains references
68-
NANOCLR_CHECK_HRESULT(
69-
RuntimeHelpers::CheckReferenceOrContainsReferences(
70-
element.Class,
71-
element.DataType,
72-
&parser,
73-
isRefContainsRefs));
68+
NANOCLR_CHECK_HRESULT(RuntimeHelpers::CheckReferenceOrContainsReferences(
69+
element.Class,
70+
element.DataType,
71+
&parser,
72+
isRefContainsRefs));
7473

7574
if (isRefContainsRefs)
7675
{

src/CLR/CorLib/corlib_native_System_Span_1.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,11 @@ HRESULT Library_corlib_native_System_Span_1::_ctor___VOID__VOIDptr__I4(CLR_RT_St
6464
}
6565

6666
// check if T is a reference type or contains references
67-
NANOCLR_CHECK_HRESULT(
68-
RuntimeHelpers::CheckReferenceOrContainsReferences(
69-
element.Class,
70-
element.DataType,
71-
&parser,
72-
isRefContainsRefs));
67+
NANOCLR_CHECK_HRESULT(RuntimeHelpers::CheckReferenceOrContainsReferences(
68+
element.Class,
69+
element.DataType,
70+
&parser,
71+
isRefContainsRefs));
7372

7473
if (isRefContainsRefs)
7574
{

src/CLR/Core/CLR_RT_HeapBlock_Array.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ HRESULT CLR_RT_HeapBlock_Array::CreateInstance(
5353
NANOCLR_SET_AND_LEAVE(CLR_E_WRONG_TYPE);
5454
}
5555

56-
pArray = (CLR_RT_HeapBlock_Array *)g_CLR_RT_ExecutionEngine
57-
.ExtractHeapBlocksForArray(inst, length, reflex, extraBytes);
56+
pArray = (CLR_RT_HeapBlock_Array *)
57+
g_CLR_RT_ExecutionEngine.ExtractHeapBlocksForArray(inst, length, reflex, extraBytes);
5858
CHECK_ALLOCATION(pArray);
5959

6060
reference.SetObjectReference(pArray);

src/CLR/Core/GarbageCollector_ComputeReachabilityGraph.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,24 @@ bool CLR_RT_GarbageCollector::ComputeReachabilityGraphForMultipleBlocks(CLR_RT_H
232232
break;
233233

234234
case DATATYPE_SZARRAY:
235-
{
236-
CLR_RT_HeapBlock_Array *array = (CLR_RT_HeapBlock_Array *)ptr;
235+
{
236+
CLR_RT_HeapBlock_Array *array = (CLR_RT_HeapBlock_Array *)ptr;
237237

238-
if (array->IsStoragePointer())
239-
{
240-
// keep the array owning the wrapped storage alive (e.g. a Span<T>'s
241-
// backing array) - see CreateInstanceWithStorage / StorageOwner()
242-
lst = array->StorageOwner();
243-
num = 1;
244-
}
245-
else if (array->m_fReference)
246-
{
247-
// If the array is full of reference types, mark each of them.
248-
lst = (CLR_RT_HeapBlock *)array->GetFirstElement();
249-
num = array->m_numOfElements;
250-
}
238+
if (array->IsStoragePointer())
239+
{
240+
// keep the array owning the wrapped storage alive (e.g. a Span<T>'s
241+
// backing array) - see CreateInstanceWithStorage / StorageOwner()
242+
lst = array->StorageOwner();
243+
num = 1;
251244
}
252-
break;
245+
else if (array->m_fReference)
246+
{
247+
// If the array is full of reference types, mark each of them.
248+
lst = (CLR_RT_HeapBlock *)array->GetFirstElement();
249+
num = array->m_numOfElements;
250+
}
251+
}
252+
break;
253253

254254
case DATATYPE_REFLECTION:
255255
break;

0 commit comments

Comments
 (0)