Project

Profile

Help

Bug #6635

closed

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

Added by Christian Schmitz 19 days ago. Updated 12 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;
}
Actions #1

Updated by O'Neil Delpratt 12 days ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Applies to branch 12, trunk added
  • Fix Committed on Branch 12, trunk added
  • SaxonC Languages C++ added

Bug fixed and committed.

Please register to edit this issue

Also available in: Atom PDF