diff options
author | Julian Eisel <julian@blender.org> | 2021-10-12 17:40:02 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-12 17:40:02 +0300 |
commit | a2daf92a57e45039fe928a9bc6251e8f8fc2bd6d (patch) | |
tree | 2ca0abc580a9300bc5fdfefc37995f30abd8f58f /source/blender/blenkernel/BKE_asset_catalog_path.hh | |
parent | 1db42c9b7967507d5d3ac688fb1a4a36bfac5f95 (diff) |
Fix warning about deleted default constructor declared as default
Since `AssetCatalogPath` isn't default constructible (unlike the
previous `CatalogPath`, alias `std::string`), `AssetCatalog` isn't
default constructible either. But its default constructor is declared
with `= default` which Apple Clang was warning about.
Differential Revision: https://developer.blender.org/D12714
Reviewed by: Sybren Stüvel
Diffstat (limited to 'source/blender/blenkernel/BKE_asset_catalog_path.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_asset_catalog_path.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_asset_catalog_path.hh b/source/blender/blenkernel/BKE_asset_catalog_path.hh index 054b7853140..f51232334f2 100644 --- a/source/blender/blenkernel/BKE_asset_catalog_path.hh +++ b/source/blender/blenkernel/BKE_asset_catalog_path.hh @@ -56,12 +56,12 @@ class AssetCatalogPath { /** * The path itself, such as "Agents/Secret/327". */ - std::string path_; + std::string path_ = ""; public: static const char SEPARATOR; - AssetCatalogPath() = delete; + AssetCatalogPath() = default; AssetCatalogPath(StringRef path); AssetCatalogPath(const std::string &path); AssetCatalogPath(const char *path); |