fix: Fixes ValueStringBuilder empty ctor issue (#1035)
This commit is contained in:
parent
fe225003c6
commit
3b7e3c2fb7
8 changed files with 16 additions and 14 deletions
|
|
@ -221,7 +221,7 @@ namespace Server.Gumps
|
|||
}
|
||||
case AdminGumpPage.Information_Perf:
|
||||
{
|
||||
using var sb = new ValueStringBuilder();
|
||||
using var sb = ValueStringBuilder.Create();
|
||||
|
||||
ThreadPool.GetAvailableThreads(out var curUser, out var curIOCP);
|
||||
ThreadPool.GetMaxThreads(out var maxUser, out var maxIOCP);
|
||||
|
|
@ -629,7 +629,7 @@ namespace Server.Gumps
|
|||
AddLabel(12, 140, LabelHue, "There are no accounts to display.");
|
||||
}
|
||||
|
||||
using var sb = new ValueStringBuilder();
|
||||
using var sb = ValueStringBuilder.Create();
|
||||
|
||||
for (int i = 0, index = listPage * 12;
|
||||
i < 12 && index >= 0 && index < sharedAccounts.Count;
|
||||
|
|
@ -1169,7 +1169,7 @@ namespace Server.Gumps
|
|||
|
||||
AddButtonLabeled(20, 150, GetButtonID(5, 4), "Add Comment");
|
||||
|
||||
var sb = new ValueStringBuilder();
|
||||
var sb = ValueStringBuilder.Create();
|
||||
|
||||
if (a.Comments.Count == 0)
|
||||
{
|
||||
|
|
@ -1208,7 +1208,7 @@ namespace Server.Gumps
|
|||
|
||||
AddButtonLabeled(20, 150, GetButtonID(5, 5), "Add Tag");
|
||||
|
||||
var sb = new ValueStringBuilder();
|
||||
var sb = ValueStringBuilder.Create();
|
||||
|
||||
if (a.Tags.Count == 0)
|
||||
{
|
||||
|
|
@ -3054,7 +3054,7 @@ namespace Server.Gumps
|
|||
|
||||
if (list.Count > 0)
|
||||
{
|
||||
using var sb = new ValueStringBuilder();
|
||||
using var sb = ValueStringBuilder.Create();
|
||||
sb.Append("You are about to ban ");
|
||||
sb.Append(list.Count);
|
||||
sb.Append(list.Count != 1 ? "accounts." : "account.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue