Skip to content

Commit 80db329

Browse files
committed
fix typo
1 parent b0e8296 commit 80db329

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/utils/common.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

4444
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.
4646
wrapper_base() = default;
4747
~wrapper_base() = default;
48-
resource_type* p_ressource = nullptr;
48+
resource_type* p_resource = nullptr;
4949
};
5050

5151
class libgit2_object : private noncopyable_nonmovable

src/wrapper/repository_wrapper.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44

55
repository_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

1111
repository_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

1818
repository_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
}

src/wrapper/status_wrapper.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33

44
status_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

1010
status_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

0 commit comments

Comments
 (0)