Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bfaf5ee

Browse files
==
=
authored and
=
committed
[#51] fix formatting and remove unnecessary variable initialization
1 parent 3b519ac commit bfaf5ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎Unity/Assets/NativeScript/Bindings.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static class ObjectStore
4040
public static void Init(int maxObjects)
4141
{
4242
ObjectStore.maxObjects = maxObjects;
43-
objectHandleCache = new Dictionary<object, int>(maxObjects);
43+
objectHandleCache = new Dictionary<object, int>(maxObjects);
4444
handles = new Stack<int> (maxObjects);
4545

4646
// Initialize the objects as all null plus room for the
@@ -93,8 +93,7 @@ public static int GetHandle(object obj)
9393

9494
lock (objects)
9595
{
96-
// A handle with a value of 0 is NULL
97-
int handle = 0;
96+
int handle;
9897

9998
// Get handle from object cache
10099
if (objectHandleCache.TryGetValue(obj, out handle))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /