From dafc668f567ec3c529fbcf8b7dbf2d6a9c6736fe Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Tue, 23 Sep 2025 11:12:10 +0800 Subject: [PATCH] fix: [typo] Correct spelling errors in EDIDparser. Fixed typos in method name and variable comments to ensure consistent and correct spelling: - Changed parserVendor() to parseVendor() across both declaration and implementation - Fixed "heigth" to "height" in method comments and variable descriptions Log: Fix spelling errors in EDID parser Change-Id: Ia15db2bf96f2e145718981592e69dca3e740172c --- deepin-devicemanager/src/Tool/EDIDParser.cpp | 4 ++-- deepin-devicemanager/src/Tool/EDIDParser.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deepin-devicemanager/src/Tool/EDIDParser.cpp b/deepin-devicemanager/src/Tool/EDIDParser.cpp index 634488ef..2eaff9ea 100644 --- a/deepin-devicemanager/src/Tool/EDIDParser.cpp +++ b/deepin-devicemanager/src/Tool/EDIDParser.cpp @@ -73,7 +73,7 @@ bool EDIDParser::setEdid(const QString &edid, QString &errorMsg, const QString & } // 解析厂商信息 - parserVendor(); + parseVendor(); // 解析发布日期 parseReleaseDate(); // 解析屏幕尺寸 @@ -119,7 +119,7 @@ int EDIDParser::height() return m_Height; } -void EDIDParser::parserVendor() +void EDIDParser::parseVendor() { // 获取制造商信息,edid中的 08h 和 09h 是厂商信息 // 08表示 第0行 第9个字节 diff --git a/deepin-devicemanager/src/Tool/EDIDParser.h b/deepin-devicemanager/src/Tool/EDIDParser.h index 31138c2d..c22102da 100644 --- a/deepin-devicemanager/src/Tool/EDIDParser.h +++ b/deepin-devicemanager/src/Tool/EDIDParser.h @@ -66,16 +66,16 @@ class EDIDParser /** * @brief height : get screen height - * @return + * @return screen height */ int height(); private: /** - * @brief parserVendor:从edid中获取厂商信息 + * @brief parseVendor:从edid中获取厂商信息 */ - void parserVendor(); + void parseVendor(); /** * @brief parseReleaseDate:从edid中获取发布日期 @@ -154,7 +154,7 @@ class EDIDParser QString m_MonitorName; // 监视器名称 bool m_LittleEndianMode; // 小端模式 int m_Width; // width - int m_Height; // heigth + int m_Height; // height QStringList m_ListEdid; // edid数据 QMap m_MapCh; // 二进制字符串映射到字母A-Z