Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArticleHash: Fix member initialization #269

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/dbtree/articlehash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ enum


ArticleHash::ArticleHash()
: m_size( 0 ),
m_min_hash( HASH_TBLSIZE + 1 )
: m_min_hash( HASH_TBLSIZE + 1 )
{
m_iterator = new ArticleHashIterator( this );
}
Expand Down
8 changes: 4 additions & 4 deletions src/dbtree/articlehash.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ namespace DBTREE
{
friend class ArticleHashIterator;

size_t m_size;
size_t m_size{};
size_t m_min_hash;
ArticleHashIterator* m_iterator;
std::vector< std::vector< ArticleBase* > > m_table;

// iterator 用変数
size_t m_it_hash;
size_t m_it_pos;
size_t m_it_size;
size_t m_it_hash{};
size_t m_it_pos{};
size_t m_it_size{};

public:

Expand Down