Skip to content

Commit

Permalink
清除编译告警
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Aug 25, 2024
1 parent 45cfae4 commit bf9ecec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion hikyuu_cpp/hikyuu/KDataImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ void KDataImp::_recoverEqualForward() {

KRecordList kdata = m_buffer; // 防止同一天两条权息记录
StockWeightList::const_iterator weightIter = weightList.begin();
StockWeightList::const_iterator pre_weightIter;
size_t pre_pos = 0;
for (; weightIter != weightList.end(); ++weightIter) {
// 计算流通股份变动比例,但不处理仅仅只有流通股本改变的情况
Expand Down
2 changes: 1 addition & 1 deletion hikyuu_cpp/hikyuu/strategy/RunPortfolioInStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace hku {
RunPortfolioInStrategy::RunPortfolioInStrategy(const PFPtr& pf, const KQuery& query,
int adjust_cycle, const OrderBrokerPtr& broker,
const TradeCostPtr& costfunc)
: m_pf(pf), m_adjust_cycle(adjust_cycle), m_broker(broker) {
: m_pf(pf), m_broker(broker), m_adjust_cycle(adjust_cycle) {
HKU_ASSERT(pf && broker);

if (query.queryType() == KQuery::INDEX) {
Expand Down
2 changes: 1 addition & 1 deletion hikyuu_cpp/hikyuu/strategy/RunPortfolioInStrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HKU_API RunPortfolioInStrategy {
PFPtr m_pf;
OrderBrokerPtr m_broker;
KQuery m_query;
int m_adjust_cycle;
int m_adjust_cycle = 1;
};

StrategyPtr HKU_API crtPFStrategy(const PFPtr& pf, const KQuery& query, int adjust_cycle,
Expand Down

0 comments on commit bf9ecec

Please sign in to comment.