Skip to content

Commit f82ffe5

Browse files
author
Eric Ehlers
committed
QPR-11322 port commit 1f8729 from luigi's repo
1 parent e0effb4 commit f82ffe5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ql/exchangerate.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ namespace QuantLib {
8181

8282
// inline definitions
8383

84-
inline ExchangeRate::ExchangeRate()
85-
: rate_(Null<Decimal>()) {}
84+
inline ExchangeRate::ExchangeRate() : rate_(Null<Decimal>()), type_(Direct) {}
8685

8786
inline ExchangeRate::ExchangeRate(Currency source, Currency target, Decimal rate)
8887
: source_(std::move(source)), target_(std::move(target)), rate_(rate), type_(Direct) {}

0 commit comments

Comments
 (0)