diff --git a/hikyuu_cpp/hikyuu/trade_sys/multifactor/MultiFactorBase.cpp b/hikyuu_cpp/hikyuu/trade_sys/multifactor/MultiFactorBase.cpp index 183f21f2..496a5705 100644 --- a/hikyuu_cpp/hikyuu/trade_sys/multifactor/MultiFactorBase.cpp +++ b/hikyuu_cpp/hikyuu/trade_sys/multifactor/MultiFactorBase.cpp @@ -59,11 +59,11 @@ HKU_API std::ostream& operator<<(std::ostream& out, const MultiFactorPtr& mf) { return out; } -MultiFactorBase::MultiFactorBase() { +MultiFactorBase::MultiFactorBase() : m_name("MultiFactorBase") { initParam(); } -MultiFactorBase::MultiFactorBase(const string& name) { +MultiFactorBase::MultiFactorBase(const string& name) : m_name(name) { initParam(); }