forked from qt-creator/qt-creator
Utils: Remove superfluous qualifications
Change-Id: I36e17dac0cff87f82f0ddaf97bc613389110f218 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
9f8dbc1d2f
commit
7cee991c70
@@ -275,13 +275,13 @@ auto toRawPointer(const SourceContainer &sources)
|
||||
// take:
|
||||
/////////////////
|
||||
template<typename C>
|
||||
Q_REQUIRED_RESULT Utils::optional<ValueType<C>> take(C &container, PointerType<C> p)
|
||||
Q_REQUIRED_RESULT optional<ValueType<C>> take(C &container, PointerType<C> p)
|
||||
{
|
||||
return take(container, [p](const ValueType<C> &v) { return v.get() == p; });
|
||||
}
|
||||
|
||||
template <typename C>
|
||||
Q_REQUIRED_RESULT Utils::optional<ValueType<C>> take(C &container, std::nullptr_t)
|
||||
Q_REQUIRED_RESULT optional<ValueType<C>> take(C &container, std::nullptr_t)
|
||||
{
|
||||
return take(container, static_cast<PointerType<C>>(nullptr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user