File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments