fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -51,7 +51,10 @@ Track& TimelineModel::track(int id) noexcept(false)
|
||||
{
|
||||
if (id == m_rootTrack.id())
|
||||
return m_rootTrack;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // model facade delegates to the deprecated root Track lookup
|
||||
return m_rootTrack.track(id);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
auto it = m_trackCache.find(id);
|
||||
@@ -68,7 +71,10 @@ const Track& TimelineModel::track(int id) const noexcept(false)
|
||||
{
|
||||
if (id == m_rootTrack.id())
|
||||
return m_rootTrack;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // model facade delegates to the deprecated root Track lookup
|
||||
return m_rootTrack.track(id);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
std::map<int, Track*>::const_iterator it = m_trackCache.find(id);
|
||||
@@ -82,7 +88,10 @@ const Track& TimelineModel::track(int id) const noexcept(false)
|
||||
Item& TimelineModel::item(int id) noexcept(false)
|
||||
{
|
||||
if (!m_itemCaching)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // model facade delegates to the deprecated root Track lookup
|
||||
return m_rootTrack.item(id);
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
auto it = m_itemCache.find(id);
|
||||
|
||||
@@ -95,7 +104,10 @@ Item& TimelineModel::item(int id) noexcept(false)
|
||||
const Item& TimelineModel::item(int id) const noexcept(false)
|
||||
{
|
||||
if (!m_itemCaching)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // model facade delegates to the deprecated root Track lookup
|
||||
return m_rootTrack.item(id);
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
decltype(m_itemCache)::const_iterator it = m_itemCache.find(id);
|
||||
|
||||
@@ -132,7 +144,10 @@ bool TimelineModel::isItemsBetween(qint64 start, qint64 end, const QVector<int>&
|
||||
const QVector<int> TimelineModel::copyItemIdsBetween(qint64 start, qint64 end, bool strict, bool complete,
|
||||
bool sorted) const
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // model facade delegates to the deprecated root Track lookup
|
||||
return m_rootTrack.copyItemIdsBetween(start, end, strict, complete, true, sorted);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
bool TimelineModel::isItemsBetween(qint64 start, qint64 end, int ignoreId, bool strict, bool complete,
|
||||
|
||||
Reference in new issue
Block a user