projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb3f28f
)
Odd const fix.
author
Carl Hetherington
<cth@carlh.net>
Tue, 21 Jun 2016 08:57:30 +0000
(09:57 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 21 Jun 2016 08:57:30 +0000
(09:57 +0100)
src/wx/timeline.cc
patch
|
blob
|
history
diff --git
a/src/wx/timeline.cc
b/src/wx/timeline.cc
index ef8549d4253795f6c6edebe6fcfa71fe358b2e03..8633e47b9bc0e639378ca006f96916ade00ec2b2 100644
(file)
--- a/
src/wx/timeline.cc
+++ b/
src/wx/timeline.cc
@@
-150,21
+150,23
@@
Timeline::recreate_views ()
_views.push_back (_reels_view);
_views.push_back (_labels_view);
_views.push_back (_reels_view);
_views.push_back (_labels_view);
+ /* XXX: make_shared does not work here on some compilers due to some strange const problem */
+
BOOST_FOREACH (shared_ptr<Content> i, film->content ()) {
if (i->video) {
BOOST_FOREACH (shared_ptr<Content> i, film->content ()) {
if (i->video) {
- _views.push_back (
make_shared<TimelineVideoContentView> (*this, i
));
+ _views.push_back (
shared_ptr<TimelineContentView> (new TimelineVideoContentView (*this, i)
));
}
if (i->audio && !i->audio->mapping().mapped_output_channels().empty ()) {
}
if (i->audio && !i->audio->mapping().mapped_output_channels().empty ()) {
- _views.push_back (
make_shared<TimelineAudioContentView> (*this, i
));
+ _views.push_back (
shared_ptr<TimelineContentView> (new TimelineAudioContentView (*this, i)
));
}
if (i->subtitle) {
}
if (i->subtitle) {
- _views.push_back (
make_shared<TimelineSubtitleContentView> (*this, i
));
+ _views.push_back (
shared_ptr<TimelineContentView> (new TimelineSubtitleContentView (*this, i)
));
}
if (dynamic_pointer_cast<AtmosMXFContent> (i)) {
}
if (dynamic_pointer_cast<AtmosMXFContent> (i)) {
- _views.push_back (
make_shared<TimelineAtmosContentView> (*this, i
));
+ _views.push_back (
shared_ptr<TimelineContentView> (new TimelineAtmosContentView (*this, i)
));
}
}
}
}