summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-10-16 12:28:42 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-10-16 12:28:42 +0100
commitfe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f (patch)
tree4f29e52cb95ec07e2345718d17ad50bf1cce2501
parentDisable bugprone-easily-swappable-parameters (diff)
downloadlibadhocutil-fe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f.tar.bz2
libadhocutil-fe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f.tar.xz
libadhocutil-fe2ee698bfacdcbd06a4a10f5e7b2ac5050ffb8f.zip
Simplify default return value
-rw-r--r--libadhocutil/buffer.cpp2
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