mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 00:07:49 +01:00
refactor: use nullable annotations instead of CanBeNullAttribute
This commit is contained in:
parent
3c5c7fbc80
commit
010a4972cd
14 changed files with 33 additions and 62 deletions
|
|
@ -65,8 +65,7 @@ namespace Dalamud.Game.ClientState.Statuses
|
|||
/// </summary>
|
||||
/// <param name="index">Status Index.</param>
|
||||
/// <returns>The status at the specified index.</returns>
|
||||
[CanBeNull]
|
||||
public Status this[int index]
|
||||
public Status? this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
@ -96,8 +95,7 @@ namespace Dalamud.Game.ClientState.Statuses
|
|||
/// </summary>
|
||||
/// <param name="address">The address of the status effect in memory.</param>
|
||||
/// <returns>The status object containing the requested data.</returns>
|
||||
[CanBeNull]
|
||||
public Status CreateStatusReference(IntPtr address)
|
||||
public Status? CreateStatusReference(IntPtr address)
|
||||
{
|
||||
var clientState = Service<ClientState>.Get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue