-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix some coding issues #18
Fix some coding issues #18
Conversation
This bug was caused by the changes made in TreeItemModel
…edesign' Conflicts: src/util/parented_ptr.h
Oh I found an issue related to the |
Yes, good idea, that sounds safer anyway! Actually we can probably remove
most of the template code in this case, right?
…On 25 Feb. 2017 06:47, "Joan" ***@***.***> wrote:
Oh I found an issue related to the parented_ptr class, some classes have
the parent() member private and it gives a compilation error. In this
case we should force a u to QObject casting and then parented_ptr should
be only used with Qt Objects.
See:
https://travis-ci.org/jmigual/mixxx/jobs/205123907
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4npNSVvpX49UYKK1zSlcLtA6DkZcks5rf0_ugaJpZM4MLtUG>
.
|
If we remove the template nature of parented_ptr, we loose the type safety, having an suspicious up cast on every dereferencing access. I think it is more save to check if the pointer actually points to a QObject inherited class. I do not understand why parent() is private for some classes. |
I've tried doing the casting to |
@jmigual |
This reverts commit 4c6565a.
Now I've tried compiling with Qt5.7 and Qt5.5 and it does not give a compilation error. Before I was compiling with Qt4.8. By the way I found another issue, if you construct a explicit parented_ptr(T* t) : m_pObject(t) {
DEBUG_ASSERT(t->parent() != nullptr);
} We should check if |
Ok, it's finally fixed the I had to modify the |
LGTM! Thank you. |
…ehavior use isAdoptMetaknobValueEnabled and "[Effects]", "AdoptMetaknobValue"
CMake: fix version detection for TagLib
Fix some (not all) coding issues pointed by @timrae. I've fixed the
parented_ptr
issue too.