Just about ready to make Image use shared_ptr.

This lets me get rid of the refcount member and the
ref/deref functions.
This commit is contained in:
2025-08-01 01:04:35 -04:00
parent a16f3cb74d
commit b2963b17d2
3 changed files with 7 additions and 16 deletions

View File

@ -66,7 +66,7 @@ struct DilloImage {
float dpi; /**< Dots per inch */
int32_t bg_color; /**< Background color */
int32_t fg_color; /**< Foreground color */
bitvec_t *BitVec; /**< Bit vector for decoded rows */
std::unique_ptr< bitvec_t > BitVec; /**< Bit vector for decoded rows */
uint_t ScanNumber; /**< Current decoding scan */
ImageState State; /**< Processing status */