Skip to content

Commit 4f2d766

Browse files
committed
Update RemoveReference methods to use CommitBase
Now that IObjectBase uses CommitBase in RemoveReference, its implementing classes need to use the base type too.
1 parent d8f3ecc commit 4f2d766

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/SIL.Harmony.Sample/Models/Definition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Guid[] GetReferences()
1818
return [WordId];
1919
}
2020

21-
public void RemoveReference(Guid id, Commit commit)
21+
public void RemoveReference(Guid id, CommitBase commit)
2222
{
2323
if (WordId == id)
2424
{

src/SIL.Harmony.Sample/Models/Example.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public Guid[] GetReferences()
3131
return [DefinitionId];
3232
}
3333

34-
public void RemoveReference(Guid id, Commit commit)
34+
public void RemoveReference(Guid id, CommitBase commit)
3535
{
3636
if (DefinitionId == id)
3737
{

src/SIL.Harmony.Sample/Models/Tag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public Guid[] GetReferences()
1414
return [];
1515
}
1616

17-
public void RemoveReference(Guid id, Commit commit)
17+
public void RemoveReference(Guid id, CommitBase commit)
1818
{
1919
}
2020

src/SIL.Harmony.Sample/Models/Word.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ IEnumerable<Guid> Refs()
2323
}
2424
}
2525

26-
public void RemoveReference(Guid id, Commit commit)
26+
public void RemoveReference(Guid id, CommitBase commit)
2727
{
2828
if (AntonymId == id) AntonymId = null;
2929
}

src/SIL.Harmony.Tests/Adapter/CustomObjectAdapterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public DateTimeOffset? DeletedAt
107107

108108
public Guid[] GetReferences() => [];
109109

110-
public void RemoveReference(Guid id, Commit commit)
110+
public void RemoveReference(Guid id, CommitBase commit)
111111
{
112112
}
113113

src/SIL.Harmony.Tests/PersistExtraDataTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public Guid[] GetReferences()
3232
return [];
3333
}
3434

35-
public void RemoveReference(Guid id, Commit commit)
35+
public void RemoveReference(Guid id, CommitBase commit)
3636
{
3737
}
3838

src/SIL.Harmony/Resource/RemoteResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Guid[] GetReferences()
1818
return [];
1919
}
2020

21-
public void RemoveReference(Guid id, Commit commit)
21+
public void RemoveReference(Guid id, CommitBase commit)
2222
{
2323
}
2424

0 commit comments

Comments
 (0)