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