diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-03-28 13:09:28 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-03-28 16:11:01 +0400 |
commit | 882ce61dc0b39ac9bf2303923fb90f4f6158753c (patch) | |
tree | 378bb837e2fdac7bfec32a8046603f46a802361e /LibGit2Sharp/Blob.cs | |
parent | 38e2c62fd91c13288db604358689359f4703cb61 (diff) |
Replace usage of IntPtr holding references to git objects with GitObjectSafeHandle
Diffstat (limited to 'LibGit2Sharp/Blob.cs')
-rw-r--r-- | LibGit2Sharp/Blob.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LibGit2Sharp/Blob.cs b/LibGit2Sharp/Blob.cs index ec6971eb..174d000b 100644 --- a/LibGit2Sharp/Blob.cs +++ b/LibGit2Sharp/Blob.cs @@ -3,6 +3,7 @@ using System.IO; using System.Runtime.InteropServices; using System.Text; using LibGit2Sharp.Core; +using LibGit2Sharp.Core.Handles; namespace LibGit2Sharp { @@ -62,7 +63,7 @@ namespace LibGit2Sharp return Encoding.Unicode.GetString(Content); } - internal static Blob BuildFromPtr(IntPtr obj, ObjectId id, Repository repo) + internal static Blob BuildFromPtr(GitObjectSafeHandle obj, ObjectId id, Repository repo) { var blob = new Blob(repo, id) { |