-
Notifications
You must be signed in to change notification settings - Fork 87
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
clean: deprecations that won't break Qt5 compatibility #1433
clean: deprecations that won't break Qt5 compatibility #1433
Conversation
setAudioPlaybackProgram( *externalPlayer ); | ||
playerPtr.reset( externalPlayer.take() ); |
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.
They realize that .take() makes the existence of this pointer type pointless, so it is removed.
@@ -41,7 +41,7 @@ Sources::Sources( QWidget * parent, Config::Class const & cfg ): | |||
// anyone? | |||
QItemEditorCreatorBase * programTypeEditorCreator = new QStandardItemEditorCreator< ProgramTypeEditor >(); | |||
|
|||
itemEditorFactory->registerEditor( QVariant::Int, programTypeEditorCreator ); |
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.
@@ -72,14 +72,14 @@ void ExternalAudioPlayer::onViewerDestroyed( QObject * destroyedViewer ) | |||
emit error( errorMessage ); | |||
} | |||
} | |||
else if ( viewer.data() == destroyedViewer ) | |||
viewer.take(); // viewer finished and died -> release ownership. |
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.
take() by nothing is reset to null.
70699a5
to
d85940b
Compare
c45e9eb
to
48fc8fc
Compare
Quality Gate passedIssues Measures |
No description provided.