X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=OpenTween%2FModels%2FTabInformations.cs;h=83a90391abaeba5c460f23f346244bc4f0ce6963;hb=a5f25092120f97ce118e4dcc432caa9c0c2440b0;hp=121695f61fb282769f25b02ce685deec63455a10;hpb=31f9940c4b8884774ea15448e60beecfbd190100;p=opentween%2Fopen-tween.git diff --git a/OpenTween/Models/TabInformations.cs b/OpenTween/Models/TabInformations.cs index 121695f6..83a90391 100644 --- a/OpenTween/Models/TabInformations.cs +++ b/OpenTween/Models/TabInformations.cs @@ -47,8 +47,8 @@ namespace OpenTween.Models public ConcurrentDictionary Posts { get; } = new ConcurrentDictionary(); - private Dictionary _quotes = new Dictionary(); - private ConcurrentDictionary retweetsCount = new ConcurrentDictionary(); + private readonly Dictionary _quotes = new Dictionary(); + private readonly ConcurrentDictionary retweetsCount = new ConcurrentDictionary(); public Stack RemovedTab { get; } = new Stack(); @@ -59,10 +59,10 @@ namespace OpenTween.Models //AddPost(複数回) -> DistributePosts -> SubmitUpdate private readonly TabCollection tabs = new TabCollection(); - private ConcurrentQueue addQueue = new ConcurrentQueue(); + private readonly ConcurrentQueue addQueue = new ConcurrentQueue(); /// 通知サウンドを再生する優先順位 - private Dictionary notifyPriorityByTabType = new Dictionary + private readonly Dictionary notifyPriorityByTabType = new Dictionary { [MyCommon.TabUsageType.DirectMessage] = 100, [MyCommon.TabUsageType.Mentions] = 90, @@ -74,7 +74,7 @@ namespace OpenTween.Models //トランザクション用 private readonly object LockObj = new object(); - private static TabInformations _instance = new TabInformations(); + private static readonly TabInformations _instance = new TabInformations(); //List private List _lists = new List();