Skip to content

Commit 3363f47

Browse files
committed
changed structuredtradeerror for matured trades to structuredtradewarning
1 parent 106841f commit 3363f47

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OREData/ored/portfolio/portfolio.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <ored/portfolio/fxforward.hpp>
2121
#include <ored/portfolio/portfolio.hpp>
2222
#include <ored/portfolio/structuredtradeerror.hpp>
23+
#include <ored/portfolio/structuredtradewarning.hpp>
2324
#include <ored/portfolio/swap.hpp>
2425
#include <ored/portfolio/swaption.hpp>
2526
#include <ored/utilities/log.hpp>
@@ -110,7 +111,7 @@ bool Portfolio::remove(const std::string& tradeID) {
110111
void Portfolio::removeMatured(const Date& asof) {
111112
for (auto it = trades_.begin(); it != trades_.end(); /* manual */) {
112113
if ((*it).second->maturity() <= asof) {
113-
StructuredTradeErrorMessage((*it).second, "", "Trade is Matured").log();
114+
StructuredTradeWarningMessage((*it).second, "", "Trade is Matured").log();
114115
it=trades_.erase(it);
115116
} else {
116117
++it;

0 commit comments

Comments
 (0)