summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-06-27 00:06:14 +0200
committerCarl Hetherington <cth@carlh.net>2023-06-27 00:10:58 +0200
commitd305bb807a686fd7850257a724f46a77977fe491 (patch)
treef192664bba7d0b37b1b579a1d969379432adda09 /src
parent9219b9c77f3ce283eb6551a484ee4a6592ccfa30 (diff)
Add Asset::unset_hash().
Diffstat (limited to 'src')
-rw-r--r--src/asset.cc8
-rw-r--r--src/asset.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/asset.cc b/src/asset.cc
index 14aec0dd..d88c690d 100644
--- a/src/asset.cc
+++ b/src/asset.cc
@@ -181,3 +181,11 @@ Asset::set_hash (string hash)
{
_hash = hash;
}
+
+
+void
+Asset::unset_hash()
+{
+ _hash = optional<string>();
+}
+
diff --git a/src/asset.h b/src/asset.h
index c5d50010..9f299acc 100644
--- a/src/asset.h
+++ b/src/asset.h
@@ -135,6 +135,7 @@ public:
std::string hash (boost::function<void (float)> progress = {}) const;
void set_hash (std::string hash);
+ void unset_hash();
protected: