Skip to content

Commit

Permalink
Rename local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmaxwell3 committed May 13, 2024
1 parent 7aab0f2 commit e4c7555
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Src/LexText/Interlinear/InterlinDocRootSiteBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,15 +1057,14 @@ public virtual void PropChanged(int hvo, int tag, int ivMin, int cvIns, int cvDe
// (When a lowercase wordform changes, it affects the best guess of its uppercase versions.)
var form = wordform.Form.VernacularDefaultWritingSystem;
var cf = new CaseFunctions(m_cache.ServiceLocator.WritingSystemManager.Get(form.get_WritingSystemAt(0)));
foreach (IWfiWordform wordform2 in uniqueWordforms)
foreach (IWfiWordform ucWordform in uniqueWordforms)
{
var form2 = wordform2.Form.VernacularDefaultWritingSystem;
if (form2 != form && form2 != null && !string.IsNullOrEmpty(form2.Text))
var ucForm = ucWordform.Form.VernacularDefaultWritingSystem;
if (ucForm != form && ucForm != null && !string.IsNullOrEmpty(ucForm.Text))
{
string sLower = cf.ToLower(form2.Text);
if (sLower == form.Text)
if (cf.ToLower(ucForm.Text) == form.Text)
{
m_wordformsToUpdate.Add(wordform2);
m_wordformsToUpdate.Add(ucWordform);
m_mediator.IdleQueue.Add(IdleQueuePriority.High, PostponedUpdateWordforms);
}
}
Expand Down

0 comments on commit e4c7555

Please sign in to comment.