Port away from Quotient::Omittable

This commit is contained in:
Tobias Fella
2024-06-27 20:19:01 +02:00
parent fd8725f649
commit 2e0c074a9b
9 changed files with 41 additions and 18 deletions

10
src/definitions.h Normal file
View 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