-
…df::Dictionary`, update constructors, and streamline logic with `Dictionary` API.
-
…simplify iteration logic, update to use `Dictionary` API, and streamline error checks.
-
…with subscript operator, simplify logic, and improve error checks.
-
…h subscript operator, streamline `repair` with `Dictionary` initializer, and remove redundant semicolon.
-
…access, and streamline logic.
-
…y` with subscript operator, and simplify logic.
-
…`getKey` with subscript operator, and simplify logic.
-
…ictionary` APIs, replace `getKey` with subscript operator, streamline logic, and simplify bounds checks.
-
…y, and simplify implementation.
-
…erator[]`, and simplify null handling logic.
-
…actor implementation to simplify null handling and align with API conventions.
-
…ctionary key access, and simplify null handling logic.
-
- Added `Array::empty()` as a static method for creating empty arrays. - Removed unused `Array(bool empty)` constructor and defaulted `Array` constructor. - Updated `NNTree` methods to use `Array::empty()` for clarity and consistency.
-
- Marked `NNTreeIterator` and `NNTreeImpl` as `final` to prevent inheritance. - Inlined `NNTreeIterator` and `NNTreeImpl` methods to streamline code and reduce redundancy. - Updated constructors, operators, and utility functions in `NNTreeIterator` and `NNTreeImpl` for improved readability and maintainability.
-
- Added `const` qualifiers to member functions and parameters where applicable. - Replaced `QPDFObjectHandle` arrays with `qpdf::Array` for improved type clarity. - Simplified logic in `compareKeyItem` and `compareKeyKid` by removing redundant checks.
-
- Simplified the code by directly handling limits validation in `compareKeyKid`. - Improved clarity by reducing unnecessary method indirection.
-
- Removed `NNTreeDetails` and moved key validation logic directly into `NNTreeImpl`. - Replaced type determination with `qpdf_object_type_e` for improved clarity. - Updated `QPDFNameTreeObjectHelper` and `QPDFNumberTreeObjectHelper` to align with the new `NNTreeImpl` structure. - Simplified methods accessing tree items and validating keys.
-
…ated `acroform()` method and update related references for improved performance, consistency and maintainability.
-
- Introduced a `validate()` method in `QPDFNameTreeObjectHelper`, `QPDFNumberTreeObjectHelper`, and `NNTreeImpl`. - Ensure proper validation of tree keys and values, detecting invalid entries, unsorted keys, and inconsistencies. - Added support for auto-repair in case of validation errors.
-
- 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.
-
… checking, and align with `Array` API conventions.
-
…prove bounds checking
-
…y, modify bounds checks, and adjust affected tests.
-
… to use subscript operators, and simplify object access logic.
-
…reamline object assignment, and introduce constructors for `QPDFObjectHandle`.
-
…eplace `getArrayNItems` with `size`, and improve error handling logic.
-
…lify `withinLimits` logic, and improve code readability with subscript operators.
-
…edundant debug traces.
-
…and improve `findInternal` readability.
-
…`, and simplify member access.
-
…mplify control flow, and update method returns.
-
Refactor array handling in `QPDFObjectHandle`: replace `int` with `size_t` for size and index operations, introduce utility functions for type conversions, and simplify sparse array logic.
-
… warnings, and centralize utility methods.
-
… numbers and related variables, replacing `int`, to enhance consistency and avoid unnecessary checked conversions.