-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor plugins refactoring #611
Conversation
Signed-off-by: Viktor Kopp <[email protected]>
Signed-off-by: Viktor Kopp <[email protected]>
Signed-off-by: Viktor Kopp <[email protected]>
Signed-off-by: Viktor Kopp <[email protected]>
Signed-off-by: Viktor Kopp <[email protected]>
Signed-off-by: Viktor Kopp <[email protected]>
} | ||
|
||
|
||
void QDltPluginManager::decodeMsg(QDltMsg &msg, int triggeredByUser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is probably the only function which is kinda used in multithreaded context, it is hence the only one that has to be protected by the mutex.
@@ -71,7 +71,7 @@ class QDLT_EXPORT QDltPlugin | |||
bool isCommand(); | |||
|
|||
// generic plugin interfaces | |||
QString name(); | |||
QString name() const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
many of the methods here should actually be const
, but I do not change that because I do not know what promise we have to hold for plugins implementers
Mainly removal unnecessary heap allocations (use stack instead), redundant code removal, use of algos instead of raw loops