From 543cb40b7d36c9d7eed049bdad991c287fd41464 Mon Sep 17 00:00:00 2001
From: Yanis Dziki <yanis.dziki@ens-lyon.fr>
Date: Fri, 11 Apr 2025 22:43:01 +0200
Subject: [PATCH] clean

---
 motus/brain.cpp | 4 ++--
 motus/jeu.h     | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/motus/brain.cpp b/motus/brain.cpp
index b59f344..bd38bd8 100644
--- a/motus/brain.cpp
+++ b/motus/brain.cpp
@@ -50,10 +50,10 @@ vector<string> Brain::getTxtFiles() {
     vector<string> txtFiles;
 
     try {
-        // Iterate through the folder
+
         for (const auto& entry : fs::directory_iterator(dicodir)) {
             if (entry.is_regular_file() && entry.path().extension() == ".txt") {
-                txtFiles.push_back(entry.path().string());  // Add the file path to the vector
+                txtFiles.push_back(entry.path().string());
             }
         }
     } catch (const exception& e) {
diff --git a/motus/jeu.h b/motus/jeu.h
index d612224..00304a1 100644
--- a/motus/jeu.h
+++ b/motus/jeu.h
@@ -21,19 +21,19 @@ public:
     Q_INVOKABLE int getWidth();
     Q_INVOKABLE int getHeight();
     Q_INVOKABLE void startGame(); // pour init depuis QML
-    QQuickItem* getGameWindow() const { return gameWindow; } // Getter for gameWindow
+    QQuickItem* getGameWindow() const { return gameWindow; } // Getter pour gameWindow
     void setLetterModel(LetterModel* model); // Setter pour le modèle
 
 
 signals:
     void motChanged();
-    void gameWindowChanged(); // Signal to notify when the game window is set
+    void gameWindowChanged();
 
 private:
     Brain* brain;
     QQmlApplicationEngine* engine;
     QString mot;
-    QQuickItem* gameWindow; // Pointer to the QQuickItem of the GameWindow
+    QQuickItem* gameWindow;
     LetterModel* m_letterModel = nullptr;  // Modèle QML
     int currentIndex = 0; // Pour suivre où on écrit
     int width;
-- 
GitLab