Skip to content

Commit 413788a

Browse files
committed
CPP: Fix qhelp.
1 parent 415655a commit 413788a

7 files changed

+26
-27
lines changed

cpp/ql/src/Likely Bugs/JapaneseEra/ConstructorOrMethodWithExactEraDate.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<references>
1313
<li>
14-
<a href="https://blogs.msdn.microsoft.com/shawnste/2018/04/12/the-japanese-calendars-y2k-moment/">The Japanese Calendars Y2K Moment</a>.
14+
<a href="https://blogs.msdn.microsoft.com/shawnste/2018/04/12/the-japanese-calendars-y2k-moment/">The Japanese Calendar's Y2K Moment</a>.
1515
</li>
1616
</references>
1717
</qhelp>

cpp/ql/src/Likely Bugs/JapaneseEra/StructWithExactEraDate.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<references>
1313
<li>
14-
<a href="https://blogs.msdn.microsoft.com/shawnste/2018/04/12/the-japanese-calendars-y2k-moment/">The Japanese Calendars Y2K Moment</a>.
14+
<a href="https://blogs.msdn.microsoft.com/shawnste/2018/04/12/the-japanese-calendars-y2k-moment/">The Japanese Calendar's Y2K Moment</a>.
1515
</li>
1616
</references>
1717
</qhelp>

cpp/ql/src/Likely Bugs/Leap Year/Adding365daysPerYear.qhelp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ of days. Alternatively, use an established library routine that already contain
1515
</recommendation>
1616

1717
<references>
18-
<include src="LeapYearReferences.qhelp" />
18+
<li>U.S. Naval Observatory Website - <a href="https://aa.usno.navy.mil/faq/docs/calendars.php"> Introduction to Calendars</a></li>
19+
<li>Wikipedia - <a href="https://en.wikipedia.org/wiki/Leap_year_bug"> Leap year bug</a> </li>
20+
<li>Microsoft Azure blog - <a href="https://azure.microsoft.com/en-us/blog/is-your-code-ready-for-the-leap-year/"> Is your code ready for the leap year?</a> </li>
1921
</references>
2022
</qhelp>

cpp/ql/src/Likely Bugs/Leap Year/LeapYearReferences.qhelp

Lines changed: 0 additions & 10 deletions
This file was deleted.

cpp/ql/src/Likely Bugs/Leap Year/UncheckedLeapYearAfterYearModification.qhelp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
</example>
2323

2424
<references>
25-
<include src="LeapYearReferences.qhelp" />
25+
<li>U.S. Naval Observatory Website - <a href="https://aa.usno.navy.mil/faq/docs/calendars.php"> Introduction to Calendars</a></li>
26+
<li>Wikipedia - <a href="https://en.wikipedia.org/wiki/Leap_year_bug"> Leap year bug</a> </li>
27+
<li>Microsoft Azure blog - <a href="https://azure.microsoft.com/en-us/blog/is-your-code-ready-for-the-leap-year/"> Is your code ready for the leap year?</a> </li>
2628
</references>
2729
</qhelp>

cpp/ql/src/Likely Bugs/Leap Year/UncheckedReturnValueForTimeFunctions.qhelp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@
77

88
<p>When using a function that transforms a date structure, and the year on the input argument for the API has been manipulated, it is important to check for the return value of the function to make sure it succeeded.</p>
99
<p>Otherwise, the function may have failed, and the output parameter may contain invalid data that can cause any number of problems on the affected system.</p>
10-
<p>The following is a list of the functions that this query covers:</p>
10+
<p>The following is a list of the functions that this query covers:
1111
<list>
12-
<li><code>FileTimeToSystemTime</code></li>
13-
<li><code>SystemTimeToFileTime</code></li>
14-
<li><code>SystemTimeToTzSpecificLocalTime</code></li>
15-
<li><code>SystemTimeToTzSpecificLocalTimeEx</code></li>
16-
<li><code>TzSpecificLocalTimeToSystemTime</code></li>
17-
<li><code>TzSpecificLocalTimeToSystemTimeEx</code></li>
18-
<li><code>RtlLocalTimeToSystemTime</code></li>
19-
<li><code>RtlTimeToSecondsSince1970</code></li>
20-
<li><code>_mkgmtime</code></li>
21-
</list>
12+
<li><code>FileTimeToSystemTime</code></li>
13+
<li><code>SystemTimeToFileTime</code></li>
14+
<li><code>SystemTimeToTzSpecificLocalTime</code></li>
15+
<li><code>SystemTimeToTzSpecificLocalTimeEx</code></li>
16+
<li><code>TzSpecificLocalTimeToSystemTime</code></li>
17+
<li><code>TzSpecificLocalTimeToSystemTimeEx</code></li>
18+
<li><code>RtlLocalTimeToSystemTime</code></li>
19+
<li><code>RtlTimeToSecondsSince1970</code></li>
20+
<li><code>_mkgmtime</code></li>
21+
</list>
22+
</p>
2223

2324
</overview>
2425
<recommendation>
@@ -34,6 +35,8 @@
3435
</example>
3536

3637
<references>
37-
<include src="LeapYearReferences.qhelp" />
38+
<li>U.S. Naval Observatory Website - <a href="https://aa.usno.navy.mil/faq/docs/calendars.php"> Introduction to Calendars</a></li>
39+
<li>Wikipedia - <a href="https://en.wikipedia.org/wiki/Leap_year_bug"> Leap year bug</a> </li>
40+
<li>Microsoft Azure blog - <a href="https://azure.microsoft.com/en-us/blog/is-your-code-ready-for-the-leap-year/"> Is your code ready for the leap year?</a> </li>
3841
</references>
3942
</qhelp>

cpp/ql/src/Likely Bugs/Leap Year/UnsafeArrayForDaysOfYear.qhelp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
</example>
2424

2525
<references>
26-
<include src="LeapYearReferences.qhelp" />
26+
<li>U.S. Naval Observatory Website - <a href="https://aa.usno.navy.mil/faq/docs/calendars.php"> Introduction to Calendars</a></li>
27+
<li>Wikipedia - <a href="https://en.wikipedia.org/wiki/Leap_year_bug"> Leap year bug</a> </li>
28+
<li>Microsoft Azure blog - <a href="https://azure.microsoft.com/en-us/blog/is-your-code-ready-for-the-leap-year/"> Is your code ready for the leap year?</a> </li>
2729
</references>
2830
</qhelp>

0 commit comments

Comments
 (0)