mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-12 05:44:14 +03:00
Revise comments about C++14
This commit is contained in:
parent
6d29a3af60
commit
364a837dbd
3 changed files with 3 additions and 3 deletions
|
@ -225,7 +225,7 @@ namespace
|
|||
template <typename T>
|
||||
std::function<T (const T&)> clampValue(const T lower, const T upper)
|
||||
{
|
||||
// TODO: change return type to `auto` when using C++14
|
||||
// TODO: change return type to `auto` when using C++17
|
||||
return [lower, upper](const T value) -> T
|
||||
{
|
||||
if (value < lower)
|
||||
|
|
|
@ -38,7 +38,7 @@ class IndexInterval
|
|||
public:
|
||||
using IndexType = Index;
|
||||
|
||||
IndexInterval(IndexType first, IndexType last) // add constexpr when using C++14
|
||||
IndexInterval(IndexType first, IndexType last) // add constexpr when using C++17
|
||||
: m_first {first}
|
||||
, m_last {last}
|
||||
{
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
return m_value;
|
||||
}
|
||||
|
||||
TriStateBool &operator=(const TriStateBool &other) = default; // add constexpr when using C++14
|
||||
TriStateBool &operator=(const TriStateBool &other) = default; // add constexpr when using C++17
|
||||
|
||||
constexpr bool operator==(const TriStateBool &other) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue