workaround clang-14 bug
[LibreOffice.git] / external / libebook / enumarith.patch
blobf82c29d61747b3ecca34beb5cb22a075e1f75d5a
1 --- src/lib/EBOOKDocument.cpp
2 +++ src/lib/EBOOKDocument.cpp
3 @@ -147,11 +147,11 @@
5 const char *const name = char_cast(xmlTextReaderConstLocalName(reader.get()));
6 const char *const uri = char_cast(xmlTextReaderConstNamespaceUri(reader.get()));
7 - if ((EBOOKHTMLToken::html | EBOOKHTMLToken::NS_html) == getHTMLTokenId(name, uri))
8 + if ((+EBOOKHTMLToken::html | EBOOKHTMLToken::NS_html) == getHTMLTokenId(name, uri))
9 type = EBOOKDocument::TYPE_XHTML;
10 - else if ((EPubToken::container | EPubToken::NS_container) == getEPubTokenId(name, uri))
11 + else if ((+EPubToken::container | EPubToken::NS_container) == getEPubTokenId(name, uri))
12 type = EBOOKDocument::TYPE_EPUB;
13 - else if ((EBOOKOPFToken::package | EBOOKOPFToken::NS_opf) == getOPFTokenId(name, uri))
14 + else if ((+EBOOKOPFToken::package | EBOOKOPFToken::NS_opf) == getOPFTokenId(name, uri))
15 type = EBOOKDocument::TYPE_EPUB;
16 else if (EBOOKOPFToken::package == getOPFTokenId(name, uri))
17 type = EBOOKDocument::TYPE_OPENEBOOK;