diff --git a/ql/termstructures/yield/ratehelpers.cpp b/ql/termstructures/yield/ratehelpers.cpp index 279a375e5b7..646641614f5 100644 --- a/ql/termstructures/yield/ratehelpers.cpp +++ b/ql/termstructures/yield/ratehelpers.cpp @@ -625,7 +625,7 @@ namespace QuantLib { customPillarDate) {} void SwapRateHelper::initializeDates() { - if (not swapBuiltViaGivenBuilder) + if (!swapBuiltViaGivenBuilder) // 1. do not pass the spread here, as it might be a Quote // i.e. it can dynamically change // 2. input discount curve Handle might be empty now but it could