From 0b0a1c6cb34b78897d7e3a8c4fc45119751cb117 Mon Sep 17 00:00:00 2001 From: IgorekLoschinin Date: Tue, 1 Jun 2021 22:39:24 +0300 Subject: [PATCH] ref #59 Change comment for method and name variable. --- src/CopyrighFixer/CopyrighFixer/signer.cpp | 2 +- src/CopyrighFixer/CopyrighFixer/signer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CopyrighFixer/CopyrighFixer/signer.cpp b/src/CopyrighFixer/CopyrighFixer/signer.cpp index 30df179..0628739 100644 --- a/src/CopyrighFixer/CopyrighFixer/signer.cpp +++ b/src/CopyrighFixer/CopyrighFixer/signer.cpp @@ -19,7 +19,7 @@ bool Signer::checkSign(const Config &objConf) { IFileManager *Signer::searchFileByExt(const QString &extension) { - for (auto itemFM: FileManager) { + for (auto itemFM: _fileManager) { if (itemFM && itemFM->isSupport(itemFM->toExtension(extension))) { return itemFM; diff --git a/src/CopyrighFixer/CopyrighFixer/signer.h b/src/CopyrighFixer/CopyrighFixer/signer.h index 56b5b26..9b53858 100644 --- a/src/CopyrighFixer/CopyrighFixer/signer.h +++ b/src/CopyrighFixer/CopyrighFixer/signer.h @@ -31,7 +31,7 @@ public: /** * @brief searchFileByExt The method that searches for files with the desired extension. * @param extension This is the file extension to search. - * @return Returns a pointer to the FileManager of the found extension. + * @return Returns a pointer to the FileManager of the found extension, or nullptr if the file extension was not found. */ IFileManager *searchFileByExt(const QString &extension);