vcpkg/ports/xqilla/fix-compare.patch
Pierre Bisaillon d929fb3416
[New Port] Add Xqilla port (#23020)
* Essai initial

* ébauche compilation linux

* Update portfile.cmake

* Build Windows

* Export des fichiers include

* Support target x64-windows

* Ajout de version

* Formattage

* Ajout du fichier de version

* Code review comments

* Update versions

* After Code review

* Update xqilla.json

* Applying suggested modifications

* Update xqilla.json

* Add Ninja for linux builds

* Update xqilla.json

* Applying comments from CR

* Update xqilla.json

Co-authored-by: bisaillonp <Pierre.Bisaillon@ixiasoft.com>
2022-02-18 14:25:33 -08:00

27 lines
970 B
Diff

diff --git a/include/xqilla/ast/XQDocumentOrder.hpp b/include/xqilla/ast/XQDocumentOrder.hpp
index 81189e6..c22280a 100644
--- a/include/xqilla/ast/XQDocumentOrder.hpp
+++ b/include/xqilla/ast/XQDocumentOrder.hpp
@@ -68,7 +68,7 @@ private:
public:
uniqueLessThanCompareFn(const DynamicContext *context)
: context_(context) {}
- bool operator()(const Node::Ptr &first, const Node::Ptr &second)
+ bool operator()(const Node::Ptr &first, const Node::Ptr &second) const
{
return first->uniqueLessThan(second, context_);
}
diff --git a/src/lexer/XQLexer.cpp b/src/lexer/XQLexer.cpp
index 69c923f..aed0465 100644
--- a/src/lexer/XQLexer.cpp
+++ b/src/lexer/XQLexer.cpp
@@ -235,7 +235,7 @@ static void yy_flex_free YY_PROTO(( void * ));
#define YY_SKIP_YYWRAP
#define yytext_ptr yytext
-#include <FlexLexer.h>
+#include "FlexLexer.h"
int yyFlexLexer::yylex()
{
LexerError( "yyFlexLexer::yylex invoked but %option yyclass used" );