mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 10:47:01 +08:00
refactor: Fix clang-tidy warnings
This commit is contained in:
@@ -585,7 +585,7 @@ namespace swift::misc
|
|||||||
auto it =
|
auto it =
|
||||||
std::find_if(pages.cbegin(), pages.cend(), [cache](CValuePage *page) { return page->m_cache == cache; });
|
std::find_if(pages.cbegin(), pages.cend(), [cache](CValuePage *page) { return page->m_cache == cache; });
|
||||||
if (it == pages.cend()) { return *new CValuePage(parent, cache); }
|
if (it == pages.cend()) { return *new CValuePage(parent, cache); }
|
||||||
else { return **it; }
|
return **it;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CValuePage::Element
|
struct CValuePage::Element
|
||||||
|
|||||||
@@ -303,7 +303,6 @@ namespace swift::misc
|
|||||||
//! Mutex protecting operations which are critical on m_elements.
|
//! Mutex protecting operations which are critical on m_elements.
|
||||||
mutable QRecursiveMutex m_mutex;
|
mutable QRecursiveMutex m_mutex;
|
||||||
|
|
||||||
protected:
|
|
||||||
//! Synchronously return a current value.
|
//! Synchronously return a current value.
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
CVariant getValueSync(const QString &key) { return std::get<0>(getValue(key)); }
|
CVariant getValueSync(const QString &key) { return std::get<0>(getValue(key)); }
|
||||||
|
|||||||
Reference in New Issue
Block a user