summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 11:05:58 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 11:06:32 +0100
commitb9f829f2cbb7081997085f154a968e04c6c1eb7d (patch)
treef1e7693f21c650e616ce38d96c8a993c287549c8
parent4e083b4e0f33df50ed46ea30ff00b7232c29c632 (diff)
downloadsord-b9f829f2cbb7081997085f154a968e04c6c1eb7d.tar.gz
sord-b9f829f2cbb7081997085f154a968e04c6c1eb7d.tar.bz2
sord-b9f829f2cbb7081997085f154a968e04c6c1eb7d.zip
C++: Use "auto" to avoid redundancy
-rw-r--r--sord/sordmm.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index 2fa8a51..bbb378e 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -628,7 +628,7 @@ static size_t
string_sink(const void* buf, size_t len, void* stream)
{
try {
- std::string* str = static_cast<std::string*>(stream);
+ auto* str = static_cast<std::string*>(stream);
str->append(static_cast<const char*>(buf), len);
return len;
} catch (...) {