Project

Profile

Help

Bug #6635

closed

Change DocumentBuilder::DocumentBuilder to set lineNumbering and dtdVal to false, not -1

Added by Christian Schmitz 29 days ago. Updated 22 days ago.

Status:
Resolved
Priority:
Low
Category:
C++ API
Start date:
2025-01-07
Due date:
% Done:

100%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Found in version:
Fixed in version:
SaxonC Languages:
C++
SaxonC Platforms:
All
SaxonC Architecture:

Description

Since dtdVal and lineNumbering are boolean, the Visual Studio compiler here complains about assigning -1 as value. So I changed it here to assign false:

DocumentBuilder::DocumentBuilder() {
  exception = nullptr;
  schemaValidator = nullptr;
  proc = new SaxonProcessor(false);
  docBuilderObject = createDocumentBuilder(SaxonProcessor::sxn_environ->thread,
                                           (void *)proc->procRef);
  lineNumbering = false;
  dtdVal = false;
}

Please register to edit this issue

Also available in: Atom PDF