From b6d30b6137c46663cc1b89f70096000a74ed36fb Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sun, 10 Mar 2024 16:40:09 +0800 Subject: [PATCH] Rename the variable name. --- .../Lyrics/LyricPropertyAutoGenerateChangeHandler.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Lyrics/LyricPropertyAutoGenerateChangeHandler.cs b/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Lyrics/LyricPropertyAutoGenerateChangeHandler.cs index 110ca0a19..3a60d3d18 100644 --- a/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Lyrics/LyricPropertyAutoGenerateChangeHandler.cs +++ b/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Lyrics/LyricPropertyAutoGenerateChangeHandler.cs @@ -55,8 +55,8 @@ public bool CanGenerate(AutoGenerateType type) return canGenerate(timeTagGenerator); case AutoGenerateType.AutoGenerateRomanisation: - var timeTagRomajiGenerator = getSelector, RomanisationGeneratorConfig>(); - return canGenerate(timeTagRomajiGenerator); + var romanisationGenerator = getSelector, RomanisationGeneratorConfig>(); + return canGenerate(romanisationGenerator); case AutoGenerateType.AutoGenerateNotes: var noteGenerator = getGenerator(); @@ -96,8 +96,8 @@ public IDictionary GetGeneratorNotSupportedLyrics(Auto return getInvalidMessageFromGenerator(timeTagGenerator); case AutoGenerateType.AutoGenerateRomanisation: - var timeTagRomajiGenerator = getSelector, RomanisationGeneratorConfig>(); - return getInvalidMessageFromGenerator(timeTagRomajiGenerator); + var romanisationGenerator = getSelector, RomanisationGeneratorConfig>(); + return getInvalidMessageFromGenerator(romanisationGenerator); case AutoGenerateType.AutoGenerateNotes: var noteGenerator = getGenerator(); @@ -171,10 +171,10 @@ public void AutoGenerate(AutoGenerateType type) break; case AutoGenerateType.AutoGenerateRomanisation: - var timeTagRomajiGenerator = getSelector, RomanisationGeneratorConfig>(); + var romanisationGenerator = getSelector, RomanisationGeneratorConfig>(); PerformOnSelection(lyric => { - var results = timeTagRomajiGenerator.Generate(lyric); + var results = romanisationGenerator.Generate(lyric); foreach (var (key, value) in results) {