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
2626 wrapper_base& operator =(const wrapper_base&) = delete ;
2727
2828 wrapper_base (wrapper_base&& rhs)
29- : p_ressource (rhs.p_ressource )
29+ : p_resource (rhs.p_resource )
3030 {
31- rhs.p_ressource = nullptr ;
31+ rhs.p_resource = nullptr ;
3232 }
3333 wrapper_base& operator =(wrapper_base&& rhs)
3434 {
35- std::swap (p_ressource , rhs.p_ressource );
35+ std::swap (p_resource , rhs.p_resource );
3636 return this ;
3737 }
3838
3939 operator resource_type*() const noexcept
4040 {
41- return p_ressource ;
41+ return p_resource ;
4242 }
4343
4444protected:
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.
4646 wrapper_base () = default ;
4747 ~wrapper_base () = default ;
48- resource_type* p_ressource = nullptr ;
48+ resource_type* p_resource = nullptr ;
4949};
5050
5151class libgit2_object : private noncopyable_nonmovable
Original file line number Diff line number Diff line change 44
55repository_wrapper::~repository_wrapper ()
66{
7- git_repository_free (p_ressource );
8- p_ressource =nullptr ;
7+ git_repository_free (p_resource );
8+ p_resource =nullptr ;
99}
1010
1111repository_wrapper repository_wrapper::open (const std::string& directory)
1212{
1313 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 ()));
1515 return rw;
1616}
1717
1818repository_wrapper repository_wrapper::init (const std::string& directory, bool bare)
1919{
2020 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));
2222 return rw;
2323}
Original file line number Diff line number Diff line change 33
44status_list_wrapper::~status_list_wrapper ()
55{
6- git_status_list_free (p_ressource );
7- p_ressource = nullptr ;
6+ git_status_list_free (p_resource );
7+ p_resource = nullptr ;
88}
99
1010status_list_wrapper status_list_wrapper::status_list (const repository_wrapper& rw)
1111{
1212 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 ));
1414
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 );
1616 for (std::size_t i = 0 ; i < status_list_size; ++i)
1717 {
18- auto entry = git_status_byindex (res.p_ressource , i);
18+ auto entry = git_status_byindex (res.p_resource , i);
1919 res.m_entries [entry->status ].push_back (entry);
2020 }
2121
You can’t perform that action at this time.
0 commit comments