Skip to content

Commit 6e88e3b

Browse files
committed
Plugin: modify CPlugin
1 parent d9a9b72 commit 6e88e3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Src/Plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const QString CPlugin::TypeName(const TYPE t) const
6868
return QString();
6969
}
7070

71-
const QString CPlugin::Id()
71+
const QString CPlugin::Id() const
7272
{
7373
return QString::number((int)Type()) + ":" + Protocol() + ":" + Name();
7474
}

Src/Plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PLUGIN_EXPORT CPlugin : public QObject
3333
[[nodiscard]] virtual const QString TypeName(const TYPE t) const;
3434
/// \~chinese 标识。默认: Type() + ":" + Protocol() + ":" + Name()
3535
/// \~english ID. Default: Type() + ":" + Protocol() + ":" + Name()
36-
[[nodiscard]] virtual const QString Id();
36+
[[nodiscard]] virtual const QString Id() const;
3737
/// \~chinese 协议
3838
/// \~english Plugin Protocol
3939
[[nodiscard]] virtual const QString Protocol() const = 0;

0 commit comments

Comments
 (0)