Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed Jan 22, 2024
1 parent 9d2f5bb commit adf230f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/jkqtcommon.pri
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/jkqtcommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/jkqtcommon/jkqtpcsstools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "jkqtcommon/jkqtpcodestructuring.h"
#include <exception>
#include <QMetaEnum>
#include <QSet>
#include <QVector>


JKQTPCSSParser::RawErrorTag_t JKQTPCSSParser::RawErrorTag={};
Expand Down
22 changes: 22 additions & 0 deletions lib/jkqtcommon/jkqtpexpected.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
Copyright (c) 2008-2022 Jan W. Krieger (<[email protected]>)
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"
2 changes: 1 addition & 1 deletion lib/jkqtcommon/jkqtpexpected.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adf230f

Please sign in to comment.