diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-16 12:28:42 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-16 12:28:42 +0100 |
commit | fe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f (patch) | |
tree | 4f29e52cb95ec07e2345718d17ad50bf1cce2501 | |
parent | Disable bugprone-easily-swappable-parameters (diff) | |
download | libadhocutil-fe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f.tar.bz2 libadhocutil-fe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f.tar.xz libadhocutil-fe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f.zip |
Simplify default return value
-rw-r--r-- | libadhocutil/buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libadhocutil/buffer.cpp b/libadhocutil/buffer.cpp index dec3586..3bd0156 100644 --- a/libadhocutil/buffer.cpp +++ b/libadhocutil/buffer.cpp @@ -219,7 +219,7 @@ namespace AdHoc { else if (content.size() == 1) { return content.front()->str(); } - return std::string(); + return {}; } Buffer::operator const char *() const |