Remove sharp edge (uninitialized m_filter_type) when using the compiler-generated constructor for BlockFilter

This commit is contained in:
practicalswift
2019-03-04 19:52:50 +01:00
parent 2d46f1be0c
commit 82c3b3f8e0
3 changed files with 11 additions and 2 deletions

View File

@@ -251,6 +251,8 @@ bool BlockFilter::BuildParams(GCSFilter::Params& params) const
params.m_P = BASIC_FILTER_P;
params.m_M = BASIC_FILTER_M;
return true;
case BlockFilterType::INVALID:
return false;
}
return false;