Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
0fb12cf9
Commit
0fb12cf9
authored
Mar 28, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(src/app/object-builders/AsyncObjectBuilder): add assertions
parent
e63f9708
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
AsyncObjectBuilder.cpp
...ne-desktop/src/app/object-builders/AsyncObjectBuilder.cpp
+5
-1
No files found.
linphone-desktop/src/app/object-builders/AsyncObjectBuilder.cpp
View file @
0fb12cf9
...
...
@@ -33,11 +33,12 @@ using namespace std;
class
AsyncObjectBuilder
::
ObjectIncubator
:
public
QQmlIncubator
{
public:
// FIXME: At this moment, asynchronous loading is unstable.
//
Use `IncubationMode::S
ynchronous` instead in Qt 5.9.
//
In the future, use `IncubationMode::As
ynchronous` instead in Qt 5.9.
//
// See: https://bugreports.qt.io/browse/QTBUG-49416 and
// https://bugreports.qt.io/browse/QTBUG-50992
ObjectIncubator
(
AsyncObjectBuilder
*
builder
)
:
QQmlIncubator
(
IncubationMode
::
Synchronous
)
{
Q_ASSERT
(
builder
!=
nullptr
);
m_builder
=
builder
;
}
...
...
@@ -63,6 +64,9 @@ protected:
m_builder
->
m_object
=
object
;
emit
m_builder
->
objectCreated
(
object
);
Q_ASSERT
(
m_builder
->
m_component
!=
nullptr
);
Q_ASSERT
(
m_builder
->
m_incubator
!=
nullptr
);
// Optimization: Delete unused component now.
m_builder
->
m_component
->
deleteLater
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment