diff options
author | Julian Eisel <julian@blender.org> | 2021-07-20 21:06:15 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-07-20 22:30:03 +0300 |
commit | 207df439e1ad50b3af691f91710b886d0e997993 (patch) | |
tree | 76ef68a0e4478d73b89a5e159c891ecf91777562 /source/blender/makesdna/DNA_asset_types.h | |
parent | 36fb03e2b9d7796404a0ab64ab147f06c61451c7 (diff) |
Cleanup: Use const for internal file data of asset-handle
Note that the current asset-handle design is temporary, see
35affaa971cf. I still prefer this to be const, as code outside the
asset-list/file-list code should never mess with the file data of an
asset.
Diffstat (limited to 'source/blender/makesdna/DNA_asset_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_asset_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_asset_types.h b/source/blender/makesdna/DNA_asset_types.h index 3907c158573..8677ec4a50b 100644 --- a/source/blender/makesdna/DNA_asset_types.h +++ b/source/blender/makesdna/DNA_asset_types.h @@ -116,7 +116,7 @@ typedef struct AssetLibraryReference { # # typedef struct AssetHandle { - struct FileDirEntry *file_data; + const struct FileDirEntry *file_data; } AssetHandle; #ifdef __cplusplus |