mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
修复Datetime显示初始化后linux下编译失败
This commit is contained in:
parent
12bef4d70e
commit
b40d6ed045
@ -151,8 +151,8 @@ void KDataBufferImp::_recoverForward() {
|
||||
return;
|
||||
}
|
||||
|
||||
bd::date start_date = m_buffer.front().datetime.date();
|
||||
bd::date end_date = m_buffer.back().datetime.date() + bd::days(1);
|
||||
Datetime start_date(m_buffer.front().datetime.date());
|
||||
Datetime end_date(m_buffer.back().datetime.date() + bd::days(1));
|
||||
StockWeightList weightList = m_stock.getWeight(start_date, end_date);
|
||||
StockWeightList::const_iterator weightIter = weightList.begin();
|
||||
StockWeightList::const_iterator pre_weightIter = weightIter;
|
||||
@ -214,8 +214,8 @@ void KDataBufferImp::_recoverBackward() {
|
||||
return;
|
||||
}
|
||||
|
||||
bd::date start_date = m_buffer.front().datetime.date();
|
||||
bd::date end_date = m_buffer.back().datetime.date() + bd::days(1);
|
||||
Datetime start_date(m_buffer.front().datetime.date());
|
||||
Datetime end_date(m_buffer.back().datetime.date() + bd::days(1));
|
||||
StockWeightList weightList = m_stock.getWeight(start_date, end_date);
|
||||
StockWeightList::const_reverse_iterator weightIter = weightList.rbegin();
|
||||
StockWeightList::const_reverse_iterator pre_weightIter;
|
||||
@ -278,8 +278,8 @@ void KDataBufferImp::_recoverEqualForward() {
|
||||
return;
|
||||
}
|
||||
|
||||
bd::date start_date = m_buffer.front().datetime.date();
|
||||
bd::date end_date = m_buffer.back().datetime.date() + bd::days(1);
|
||||
Datetime start_date(m_buffer.front().datetime.date());
|
||||
Datetime end_date(m_buffer.back().datetime.date() + bd::days(1));
|
||||
StockWeightList weightList = m_stock.getWeight(start_date, end_date);
|
||||
if (weightList.empty()) {
|
||||
return;
|
||||
@ -353,8 +353,8 @@ void KDataBufferImp::_recoverEqualBackward() {
|
||||
return;
|
||||
}
|
||||
|
||||
bd::date start_date = m_buffer.front().datetime.date();
|
||||
bd::date end_date = m_buffer.back().datetime.date() + bd::days(1);
|
||||
Datetime start_date(m_buffer.front().datetime.date());
|
||||
Datetime end_date(m_buffer.back().datetime.date() + bd::days(1));
|
||||
StockWeightList weightList = m_stock.getWeight(start_date, end_date);
|
||||
StockWeightList::const_reverse_iterator weightIter = weightList.rbegin();
|
||||
StockWeightList::const_reverse_iterator pre_weightIter;
|
||||
|
Loading…
Reference in New Issue
Block a user