Skip to content

Commit

Permalink
make heif_error_success const
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 5, 2023
1 parent c95ed71 commit a301246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libheif/heif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#include <cassert>


struct heif_error heif_error_success = {heif_error_Ok, heif_suberror_Unspecified, kSuccess};
struct const heif_error heif_error_success = {heif_error_Ok, heif_suberror_Unspecified, kSuccess};
static struct heif_error error_unsupported_parameter = {heif_error_Usage_error,
heif_suberror_Unsupported_parameter,
"Unsupported encoder parameter"};
Expand Down
2 changes: 1 addition & 1 deletion libheif/heif.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ struct heif_error
};

// Default success return value. Intended for use in user-supplied callback functions.
LIBHEIF_API extern struct heif_error heif_error_success;
LIBHEIF_API extern const struct heif_error heif_error_success;


typedef uint32_t heif_item_id;
Expand Down

0 comments on commit a301246

Please sign in to comment.