-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fixed tests #244
Fixed tests #244
Conversation
Signed-off-by: ahcorde <[email protected]>
913f084
to
0dca7f3
Compare
Codecov Report
@@ Coverage Diff @@
## ign-gui3 #244 +/- ##
=============================================
+ Coverage 14.55% 65.70% +51.14%
=============================================
Files 13 23 +10
Lines 1333 2828 +1495
=============================================
+ Hits 194 1858 +1664
+ Misses 1139 970 -169
Continue to review full report at Codecov.
|
Signed-off-by: ahcorde <[email protected]>
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.
Just one nit/question
@@ -91,7 +91,8 @@ Plugin::Plugin() : dataPtr(new PluginPrivate) | |||
///////////////////////////////////////////////// | |||
Plugin::~Plugin() | |||
{ | |||
delete this->dataPtr->pluginItem; | |||
if (this->dataPtr->pluginItem) |
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.
I don't think this is necessary. The pluginItem
is initialized to nullptr
, and using delete
on a nullptr
shouldn't have any impact.
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.
I'm also curious about why this was added. But it shouldn't hurt, so I'm ok leaving it in.
What segmentation faults? Can you provide more context? |
In general I can see many times By the way I ran |
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
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.
Thanks for the context, LGTM. I pushed some indentation fixes in 1b8f1c0.
@@ -91,7 +91,8 @@ Plugin::Plugin() : dataPtr(new PluginPrivate) | |||
///////////////////////////////////////////////// | |||
Plugin::~Plugin() | |||
{ | |||
delete this->dataPtr->pluginItem; | |||
if (this->dataPtr->pluginItem) |
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.
I'm also curious about why this was added. But it shouldn't hurt, so I'm ok leaving it in.
Signed-off-by: ahcorde [email protected]
🦟 Bug fix
Summary
According with the official Qt documentation.
These changes should fix the segmentation faults
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge