File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -26,26 +26,26 @@ class wrapper_base
26
26
wrapper_base& operator =(const wrapper_base&) = delete ;
27
27
28
28
wrapper_base (wrapper_base&& rhs)
29
- : p_ressource (rhs.p_ressource )
29
+ : p_resource (rhs.p_resource )
30
30
{
31
- rhs.p_ressource = nullptr ;
31
+ rhs.p_resource = nullptr ;
32
32
}
33
33
wrapper_base& operator =(wrapper_base&& rhs)
34
34
{
35
- std::swap (p_ressource , rhs.p_ressource );
35
+ std::swap (p_resource , rhs.p_resource );
36
36
return this ;
37
37
}
38
38
39
39
operator resource_type*() const noexcept
40
40
{
41
- return p_ressource ;
41
+ return p_resource ;
42
42
}
43
43
44
44
protected:
45
- // Allocation and deletion of p_ressource must be handled by inheriting class.
45
+ // Allocation and deletion of p_resource must be handled by inheriting class.
46
46
wrapper_base () = default ;
47
47
~wrapper_base () = default ;
48
- resource_type* p_ressource = nullptr ;
48
+ resource_type* p_resource = nullptr ;
49
49
};
50
50
51
51
class libgit2_object : private noncopyable_nonmovable
Original file line number Diff line number Diff line change 4
4
5
5
repository_wrapper::~repository_wrapper ()
6
6
{
7
- git_repository_free (p_ressource );
8
- p_ressource =nullptr ;
7
+ git_repository_free (p_resource );
8
+ p_resource =nullptr ;
9
9
}
10
10
11
11
repository_wrapper repository_wrapper::open (const std::string& directory)
12
12
{
13
13
repository_wrapper rw;
14
- throwIfError (git_repository_open (&(rw.p_ressource ), directory.c_str ()));
14
+ throwIfError (git_repository_open (&(rw.p_resource ), directory.c_str ()));
15
15
return rw;
16
16
}
17
17
18
18
repository_wrapper repository_wrapper::init (const std::string& directory, bool bare)
19
19
{
20
20
repository_wrapper rw;
21
- throwIfError (git_repository_init (&(rw.p_ressource ), directory.c_str (), bare));
21
+ throwIfError (git_repository_init (&(rw.p_resource ), directory.c_str (), bare));
22
22
return rw;
23
23
}
Original file line number Diff line number Diff line change 3
3
4
4
status_list_wrapper::~status_list_wrapper ()
5
5
{
6
- git_status_list_free (p_ressource );
7
- p_ressource = nullptr ;
6
+ git_status_list_free (p_resource );
7
+ p_resource = nullptr ;
8
8
}
9
9
10
10
status_list_wrapper status_list_wrapper::status_list (const repository_wrapper& rw)
11
11
{
12
12
status_list_wrapper res;
13
- throwIfError (git_status_list_new (&(res.p_ressource ), rw, nullptr ));
13
+ throwIfError (git_status_list_new (&(res.p_resource ), rw, nullptr ));
14
14
15
- std::size_t status_list_size = git_status_list_entrycount (res.p_ressource );
15
+ std::size_t status_list_size = git_status_list_entrycount (res.p_resource );
16
16
for (std::size_t i = 0 ; i < status_list_size; ++i)
17
17
{
18
- auto entry = git_status_byindex (res.p_ressource , i);
18
+ auto entry = git_status_byindex (res.p_resource , i);
19
19
res.m_entries [entry->status ].push_back (entry);
20
20
}
21
21
You can’t perform that action at this time.
0 commit comments