Logo white

OpenSystemsDevelopment / qpdf

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 4,691
  • Compare
  • Branches 1
  • Tags 0
  • qpdf
  • libqpdf
  • NNTree.cc
27 Aug, 2025
2 commits
  • Add `value_validator` to `NNTree` implementations for enhanced validation. ...
    4490c23f
    - Introduced `std::function<bool(QPDFObjectHandle const&)>` to validate tree values.
    - Updated constructors and methods across `QPDFNameTreeObjectHelper` and `QPDFNumberTreeObjectHelper` to support value validation.
    - Refactored `NNTreeImpl` to check for invalid values during insertion, iteration, and retrieval.
    - Improved error handling and reporting for invalid values.
    m-holger authored
    2025-08-27 22:01:34 +0100  
    Browse File »
  • Fix #1527
    8abb42e3
    m-holger authored
    2025-08-27 20:47:06 +0100  
    Browse File »

22 Aug, 2025
1 commit
  • Improve null key/value handling in `NNTree`, add checks across insert operations ...
    bdeb1036
    Fixes bug in #1523
    m-holger authored
    2025-08-22 17:07:43 +0100  
    Browse File »

21 Aug, 2025
1 commit
  • Validate existence of array items in `NNTree`, improve null handling, and ensure robust iteration. ...
    6dfdc404
    Fixes bug in #1523
    m-holger authored
    2025-08-21 16:22:41 +0100  
    Browse File »

20 Aug, 2025
1 commit
  • Refactor `NNTree` and `NNTreeImpl` to use `Array` API, simplify logic, and remove redundant traces.
    e3ce9e17
    m-holger authored
    2025-08-20 14:06:13 +0100  
    Browse File »

17 Aug, 2025
12 commits
  • Refactor `NNTreeIterator::updateIValue`: replace `getArrayNItems` and `getArrayI… ...
    1674b67c
    …tem` with `size` and subscript operators, simplify logic, and improve error handling.
    m-holger authored
    2025-08-17 14:34:07 +0100  
    Browse File »
  • Refactor `NNTreeIterator::getNextKid`: simplify loop logic, replace `getArrayNIt… ...
    13d55d88
    …ems` and `getArrayItem` with `size` and subscript operators, and improve code readability.
    m-holger authored
    2025-08-17 14:23:27 +0100  
    Browse File »
  • Refactor `NNTreeIterator::increment`: simplify loop logic, replace `getArrayNIte… ...
    e78c1201
    …ms` and `getArrayItem` with `size` and subscript operators, remove redundant debug traces, and improve readability.
    m-holger authored
    2025-08-17 14:20:10 +0100  
    Browse File »
  • Refactor `NNTreeIterator::resetLimits`: replace `getArrayNItems` and `getArrayIt… ...
    7bbd8b30
    …em` with `size` and subscript operators, remove redundant debug traces, simplify loop logic, and improve readability.
    m-holger authored
    2025-08-17 14:15:41 +0100  
    Browse File »
  • Refactor `NNTree::split`: replace `getArrayNItems` and `getArrayItem` with `size… ...
    59b25578
    …` and subscript operators, remove redundant debug traces, and improve code readability.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »
  • Refactor `NNTreeIterator::insertAfter`: use `const` references for parameters, r… ...
    3b87d569
    …eplace `getArrayNItems` with `size`, and improve error handling logic.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »
  • Refactor `NNTree::remove`: simplify logic, replace `getArrayItem` and `getArrayN… ...
    f110a23c
    …Items` with subscript operators, introduce `std::cmp` utilities, and remove redundant debug traces.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »
  • Refactor `NNTree::deepen`: introduce lambda for failure handling, simplify loop … ...
    0d8b0882
    …logic, and replace redundant code with subscript operators.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »
  • Refactor `NNTreeImpl::withinLimits`: use `const` references for parameters, simp… ...
    baa77f54
    …lify `withinLimits` logic, and improve code readability with subscript operators.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »
  • Refactor `NNTreeImpl::compareKeyItem` and `compareKeyKid`: replace `getArrayItem… ...
    26de2d5c
    …` and `getArrayNItems` with subscript operators for readability and cleaner syntax.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »
  • Refactor `NNTreeImpl`: use const references for function parameters and remove r… ...
    61a676cc
    …edundant debug traces.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »
  • Refactor `NNTreeImpl`: simplify `binarySearch` logic, use `size_t` for indices, … ...
    f3a1139f
    …and improve `findInternal` readability.
    m-holger authored
    2025-08-17 14:06:38 +0100  
    Browse File »

25 Jul, 2025
1 commit
  • Refactor `NNTree` to encapsulate warning and error handling into `NNTreeImpl`, a… ...
    9f9f01d5
    …dding error counting and leveraging `reconstructed_xref` for improved robustness, limiting the acceptable number of errors for damaged files.
    m-holger authored
    2025-07-25 00:34:41 +0100  
    Browse File »

01 Jul, 2025
1 commit
  • Remove redundant `this->` usage across the codebase. Simplify member variable ac… ...
    e0f1be5a
    …cess for consistency and readability.
    m-holger authored
    2025-07-01 13:49:08 +0100  
    Browse File »

13 May, 2025
1 commit
  • Add `final` specifiers and initialize member variables. ...
    b0ceea46
    Refactored several classes to use C++11 `final` specifiers for inheritance restrictions and added default member initializations. These changes enhance code clarity, improve safety, and ensure modern coding practices.
    m-holger authored
    2025-05-13 21:38:32 +0100  
    Browse File »

22 Apr, 2025
1 commit
  • Don't set tree root /Limits in NNTreeIterator::resetLimits (fixes #1435)
    5d3ff8f1
    m-holger authored
    2025-04-22 15:16:15 +0100  
    Browse File »

11 Mar, 2025
1 commit
  • Minor code formatting fixes
    a9b5ebef
    m-holger authored
    2025-03-11 13:47:23 +0000  
    Browse File »

08 Feb, 2025
1 commit
  • Bump clang-format to version 20 and reformat ...
    38d8cc7f
    This improves indentation of long strings. This commit also fixes some
    trailing whitespace in ChangeLog.
    Jay Berkenbilt authored
    2025-02-08 11:17:57 -0500  
    Browse File »

17 Sep, 2024
1 commit
  • Deprecate QPDFObjectHandle::isInitialized and remove from library
    0afaaea2
    m-holger authored
    2024-09-17 09:59:00 +0100  
    Browse File »

09 Jun, 2023
3 commits
  • Code tidy - Clang-Tidy rule performance-for-range-copy
    d784e803
    m-holger authored
    2023-06-09 15:55:49 +0100  
    Browse File »
  • Code tidy - Clang-Tidy rule modernize-use-emplace
    7bc0f1d8
    m-holger authored
    2023-06-09 15:42:11 +0100  
    Browse File »
  • Code tidy - Clang-Tidy rule modernize-return-braced-init-list
    320bbb98
    m-holger authored
    2023-06-09 15:35:56 +0100  
    Browse File »

02 Jun, 2023
2 commits
  • Fix doc typos
    acd0acf1
    m-holger authored
    2023-06-02 19:24:12 +0100  
    Browse File »
  • Code tidy - reflow comments and strings
    3c5700c2
    m-holger authored
    2023-06-02 16:00:40 +0100  
    Browse File »

21 May, 2023
1 commit
  • Rerun clang-format
    60965d5f
    Jay Berkenbilt authored
    2023-05-21 13:35:09 -0400  
    Browse File »

19 May, 2023
1 commit
  • Use QPDFObjGen::set in NNTree
    0e81ffa7
    m-holger authored
    2023-05-19 16:58:04 +0100  
    Browse File »

19 Mar, 2023
1 commit
  • Code tidy re-throwing of exceptions ...
    9c7aa2cb
    Avoid copying exceptions.
    m-holger authored
    2023-03-19 17:27:39 +0000  
    Browse File »

21 Sep, 2022
1 commit
  • Replace calls to QUtil::int_to_string with std::to_string
    2e686948
    m-holger authored
    2022-09-21 15:57:14 -0400  
    Browse File »

25 Jun, 2022
1 commit
  • Code tidy: remove redundant calls to QPDFObjectHandle::isInitialized
    7836e197
    m-holger authored
    2022-06-25 11:10:06 -0400  
    Browse File »

20 May, 2022
1 commit
  • Back out fluent QPDFObjectHandle methods. Keep the andGet methods. ...
    56f1b411
    I decided these were confusing and inconsistent with how JSON works.
    They muddle the API rather than improving it.
    Jay Berkenbilt authored
    2022-05-20 09:16:25 -0400  
    Browse File »

30 Apr, 2022
2 commits
  • Formatting: remove space in range-style for loops ...
    7f023701
    Change .clang-format and commit automated changes from a fresh run of
    format-code
    Jay Berkenbilt authored
    2022-04-30 13:26:43 -0400  
    Browse File »
  • Use fluent appendItem
    2878c186
    Jay Berkenbilt authored
    2022-04-30 10:54:16 -0400  
    Browse File »

29 Apr, 2022
1 commit
  • Use fluent replaceKey
    ab9d557c
    Jay Berkenbilt authored
    2022-04-29 20:39:54 -0400  
    Browse File »

23 Apr, 2022
1 commit
  • Add new QPDF::warn that takes most of QPDFExc's arguments
    68e72198
    Jay Berkenbilt authored
    2022-04-23 18:25:43 -0400  
    Browse File »

16 Apr, 2022
1 commit
  • Remove deprecated name/number tree constructors ...
    80ed3076
    Remove the name/number tree object helper constructors that don't take
    a QPDF&.
    Jay Berkenbilt authored
    2022-04-16 13:13:15 -0400  
    Browse File »