Fix Windows build.

This commit is contained in:
Martín Lucas Golini
2023-03-05 03:14:59 -03:00
parent 2c15a803d6
commit 330d18d86e
2 changed files with 12 additions and 17 deletions

View File

@@ -15,13 +15,8 @@ namespace EE { namespace UI { namespace Doc {
struct EE_API SyntaxToken {
std::string type;
std::unique_ptr<std::string> text; // text is optional and must be requested explicitly
std::string text; // text is optional and must be requested explicitly
size_t len{ 0 };
SyntaxToken( const std::string& _type, const std::string& _text, const size_t _len ) :
type( _type ),
text( _text.empty() ? nullptr : std::make_unique<std::string>( _text ) ),
len( _len ) {}
};
#define SYNTAX_TOKENIZER_STATE_NONE ( 0 )