mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-24 17:41:39 +08:00
bugfixes
This commit is contained in:
parent
9d2f5bb579
commit
adf230fcf1
@ -48,7 +48,8 @@ isEmpty(JKQTP_COMMON_PRI_INCLUDED) {
|
||||
$$PWD/jkqtcommon/jkqtpicons.cpp \
|
||||
$$PWD/jkqtcommon/jkqtpcsstools.cpp \
|
||||
$$PWD/jkqtcommon/jkqtpcachingtools.cpp \
|
||||
$$PWD/jkqtcommon/jkqtpconcurrencytools.cpp
|
||||
$$PWD/jkqtcommon/jkqtpconcurrencytools.cpp \
|
||||
$$PWD/jkqtcommon/jkqtpexpected.cpp
|
||||
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
|
@ -30,6 +30,7 @@ target_sources(${lib_name} PRIVATE
|
||||
jkqttools.cpp
|
||||
jkqtpicons.cpp
|
||||
jkqtpcsstools.cpp
|
||||
jkqtpexpected.cpp
|
||||
)
|
||||
# ... and add headers
|
||||
target_sources(${lib_name} PUBLIC FILE_SET HEADERS TYPE HEADERS
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include "jkqtcommon/jkqtpcodestructuring.h"
|
||||
#include <exception>
|
||||
#include <QMetaEnum>
|
||||
#include <QSet>
|
||||
#include <QVector>
|
||||
|
||||
|
||||
JKQTPCSSParser::RawErrorTag_t JKQTPCSSParser::RawErrorTag={};
|
||||
|
22
lib/jkqtcommon/jkqtpexpected.cpp
Normal file
22
lib/jkqtcommon/jkqtpexpected.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
Copyright (c) 2008-2022 Jan W. Krieger (<jan@jkrieger.de>)
|
||||
|
||||
last modification: $LastChangedDate$ (revision $Rev$)
|
||||
|
||||
This software is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License (LGPL) as published by
|
||||
the Free Software Foundation, either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License (LGPL) for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License (LGPL)
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "jkqtpexpected.h"
|
@ -35,7 +35,7 @@ struct JKQTPExpectedUnexpectedType {};
|
||||
*
|
||||
* \see JKQTPExpected, JKQTPExpectedUnexpectedType
|
||||
*/
|
||||
inline constexpr JKQTPExpectedUnexpectedType JKQTPUnexpected {};
|
||||
#define JKQTPUnexpected JKQTPExpectedUnexpectedType()
|
||||
|
||||
/** \brief an "expected" datatype, which can either represent a function result of type \c T or an error of type \c E
|
||||
* \ingroup jkqtptools_general
|
||||
|
Loading…
Reference in New Issue
Block a user