File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
cpp/ql/src/Likely Bugs/Leap Year Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -362,14 +362,14 @@ class StructTmLeapYearFieldAccess extends LeapYearFieldAccess {
362362/**
363363 * `stDate.wMonth == 2`
364364 */
365- class DateCheckMonthFebruary extends Operation {
365+ private class DateCheckMonthFebruary extends EQExpr {
366+ MonthFieldAccess mfa ;
367+
366368 DateCheckMonthFebruary ( ) {
367- this .getOperator ( ) = "==" and
368- this .getAnOperand ( ) instanceof MonthFieldAccess and
369- this .getAnOperand ( ) .( Literal ) .getValue ( ) = "2"
369+ this .hasOperands ( mfa , any ( Literal lit | lit .getValue ( ) = "2" ) )
370370 }
371371
372- Expr getDateQualifier ( ) { result = this . getAnOperand ( ) . ( MonthFieldAccess ) .getQualifier ( ) }
372+ Expr getDateQualifier ( ) { result = mfa .getQualifier ( ) }
373373}
374374
375375/**
You can’t perform that action at this time.
0 commit comments