Skip to content

Commit

Permalink
Initialize some bool members for search mode (#207)
Browse files Browse the repository at this point in the history
スレビューで検索をする時、幾つかのクラスのbool memberが未初期化と怒られるので、
明示的に初期化する。
  • Loading branch information
mtasaka committed Mar 8, 2020
1 parent 77a991a commit a59babe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/article/articleviewbase.cpp
Expand Up @@ -72,6 +72,7 @@ ArticleViewBase::ArticleViewBase( const std::string& url, const std::string& url
m_popup_win( nullptr ),
m_popup_shown( false ),
m_hidepopup_counter( 0 ),
m_search_invert( false ),
m_enable_menuslot( true ),
m_current_bm( 0 ),
m_current_post( 0 ),
Expand Down
4 changes: 3 additions & 1 deletion src/jdlib/jdregex.cpp
Expand Up @@ -21,7 +21,9 @@ enum
using namespace JDLIB;

Regex::Regex()
: m_compiled(false)
: m_compiled(false),
m_newline(false),
m_wchar(false)
{
m_results.clear();
m_pos.clear();
Expand Down

0 comments on commit a59babe

Please sign in to comment.