Port away from Quotient::Omittable
This commit is contained in:
10
src/definitions.h
Normal file
10
src/definitions.h
Normal file
@@ -0,0 +1,10 @@
|
||||
// SPDX-FileCopyrightText: 2024 Tobias Fella <tobias.fella@kde.org>
|
||||
// SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
#define Omittable std::optional
|
||||
#define none Quotient::none
|
||||
#else
|
||||
#define Omittable Quotient::Omittable
|
||||
#define none std::nullopt
|
||||
#endif
|
||||
Reference in New Issue
Block a user