Skip to content

Commit c84a1aa

Browse files
committed
[Refactor] Correct variable name for current file in CodeEditor class
1 parent d4fbf88 commit c84a1aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/CodeEditor.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class CodeEditor : public QPlainTextEdit
1818
Mode mode = NORMAL;
1919
void lineNumberAreaPaintEvent(QPaintEvent *event);
2020
int lineNumberAreaWidth();
21-
QString getCurrentFileName() const { return currentFileName; }
22-
void setCurrentFileName(const QString &fileName) { currentFileName = fileName; }
21+
QString getCurrentFileName() const { return m_currentFileName; }
22+
void setCurrentFileName(const QString &fileName) { m_currentFileName = fileName; }
2323

2424
signals:
2525
void statusMessageChanged(const QString &message);
@@ -35,10 +35,11 @@ private slots:
3535

3636
private:
3737
QWidget *m_lineNumberArea;
38-
QString currentFileName;
38+
QString m_currentFileName;
39+
3940
QString getFileExtension();
4041
void addLanguageSymbol(QTextCursor &cursor, const QString &commentSymbol);
4142
void commentSelection(QTextCursor &cursor, const QString &commentSymbol);
4243
void commentLine(QTextCursor &cursor, const QString &commentSymbol);
43-
void addComment();
44+
void addComment();
4445
};

0 commit comments

Comments
 (0)