• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

CLI interface to medialist (fossil mirror)


Commit MetaInfo

Révision628cbb331ecd4bb632032fb0b2dbc3300c9c599b (tree)
l'heure2023-03-11 18:18:23
Auteurmio <stigma@disr...>
Commitermio

Message de Log

Remove redundant 'index' from foreach

FossilOrigin-Name: 71d150982bf0bc697a51431d6116e3a7044ed685ef33a0c6e1197bfa2394e91e

Change Summary

Modification

--- a/medialist.d
+++ b/medialist.d
@@ -807,7 +807,7 @@ MediaListItem ml_fetch_item(MediaList* list, size_t id)
807807 size_t endIndex = 0;
808808 size_t lastIndex = 0;
809809
810- foreach(size_t idx, int[2] header; headerPositions) {
810+ foreach(int[2] header; headerPositions) {
811811 switch(header[0]) {
812812 case MLHeaders.title:
813813 titleIndex = header[1];
@@ -1077,7 +1077,7 @@ MediaListItem[] ml_fetch_all(MediaList* list)
10771077 size_t endIndex = 0;
10781078 size_t lastIndex = 0;
10791079
1080- foreach (size_t idx, int[2] header; headerPositions)
1080+ foreach (int[2] header; headerPositions)
10811081 {
10821082 switch (header[0])
10831083 {