mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 03:49:19 +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
|
|
@ -72,8 +72,7 @@ namespace Dalamud.Game.ClientState.Party
|
|||
/// </summary>
|
||||
/// <param name="index">Spawn index.</param>
|
||||
/// <returns>A <see cref="PartyMember"/> at the specified spawn index.</returns>
|
||||
[CanBeNull]
|
||||
public PartyMember this[int index]
|
||||
public PartyMember? this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
@ -112,8 +111,7 @@ namespace Dalamud.Game.ClientState.Party
|
|||
/// </summary>
|
||||
/// <param name="address">The address of the party member in memory.</param>
|
||||
/// <returns>The party member object containing the requested data.</returns>
|
||||
[CanBeNull]
|
||||
public PartyMember CreatePartyMemberReference(IntPtr address)
|
||||
public PartyMember? CreatePartyMemberReference(IntPtr address)
|
||||
{
|
||||
var clientState = Service<ClientState>.Get();
|
||||
|
||||
|
|
@ -144,8 +142,7 @@ namespace Dalamud.Game.ClientState.Party
|
|||
/// </summary>
|
||||
/// <param name="address">The address of the alliance member in memory.</param>
|
||||
/// <returns>The party member object containing the requested data.</returns>
|
||||
[CanBeNull]
|
||||
public PartyMember CreateAllianceMemberReference(IntPtr address)
|
||||
public PartyMember? CreateAllianceMemberReference(IntPtr address)
|
||||
{
|
||||
var clientState = Service<ClientState>.Get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue