added safeguard to ensure that PgfRevision is an actual object

This commit is contained in:
krangelov
2021-09-08 09:17:12 +02:00
parent f741bd9332
commit 2e846cdf59
4 changed files with 35 additions and 17 deletions

View File

@@ -8,11 +8,6 @@
#include <stdexcept>
#include "pgf.h"
#include "db.h"
#include "text.h"
#include "vector.h"
#include "namespace.h"
#include "expr.h"
class PGF_INTERNAL_DECL pgf_error : public std::runtime_error {
public:
@@ -59,6 +54,12 @@ private:
const char *m_filepath;
};
#include "db.h"
#include "text.h"
#include "vector.h"
#include "namespace.h"
#include "expr.h"
struct PGF_INTERNAL_DECL PgfFlag {
PgfLiteral value;
PgfText name;