Skip to content
Snippets Groups Projects
  1. Jul 20, 2023
  2. Jul 18, 2023
    • Sean McBride's avatar
      Fixed out of bounds array access with empty arrays · 1c395c74
      Sean McBride authored
      It was incorrect to assume there was always a 0th element.  Instead, check that the array is not empty first.
      
      Added new test cases to test empty arrays.
      
      Thanks to David Gobbi for noticing this bug during review of something else.
      1c395c74
  3. Jul 17, 2023
    • Sean McBride's avatar
      Folded vtkVariantToNumeric.inl into the .cxx file · aea8f0a2
      Sean McBride authored
      It's existence seemed to be to support some ancient compilers.
      aea8f0a2
    • Sean McBride's avatar
      Code review of vtkVariant and vtkScalarsToColors · 4d380c86
      Sean McBride authored
      - added range checking to GetAnnotation() for consistency with GetAnnotatedValue()
      - improved various comments as I learned the details of these classes
      - changed vtkVariant's Valid ivar to bool, the related methods were already using bool
      - changed vtkVariant's Type ivar to unsigned int, the related methods were already using unsigned int
      - use VTK_VOID instead of a raw 0 for vtkVariant's Type
      - make use of constexpr in a few places
      - always use .0 so that doubles look like doubles and not ints
      - prefer preincrement in for loop
      - instead of guarding possible null pointer deref by checking Valid check the pointer itself.
      4d380c86
  4. Jul 09, 2023
  5. Jun 22, 2023
  6. Jun 21, 2023
  7. Jun 19, 2023
    • Sean McBride's avatar
      Rehabilite strange IsItemPresent() method · 3d5299a1
      Sean McBride authored
      Despite its name, IsItemPresent() doesn't return a boolean, it returns an index.  Made this more clear where it's used.
      
      Introduced a similar method named IndexOfFirstOccurence() that returns the index, as you'd guess from its name.  Changed many uses of IsItemPresent to IndexOfFirstOccurence().
      
      Changed HasProp() and HasImage() from returning int to returning vtkTypeBool. Also, with VTK_LEGACY_REMOVE, changed behaviour to actually return 0 or 1, instead of returning a 1-based index.
      3d5299a1
  8. Jun 17, 2023
  9. Jun 14, 2023
  10. Jun 13, 2023
  11. Jun 12, 2023
  12. Jun 08, 2023
  13. Jun 02, 2023
  14. May 30, 2023
  15. May 26, 2023
  16. May 25, 2023
  17. May 18, 2023
  18. May 17, 2023
Loading