mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 10:42:35 +00:00
return std::string from issetStr
This commit is contained in:
1 parent
cd200e08c0
commit
e002441fad
1 file changed
+1
-1
@@ -389,7 +389,7 @@ namespace client
|
||||
std::string BOBCommandSession::BuildStatusLine(bool currentTunnel, std::shared_ptr<BOBDestination> dest)
|
||||
{
|
||||
// helper lambdas
|
||||
constexpr auto issetStr = [](std::string_view str) { return !str.empty() ? str : "not_set"; }; // for inhost, outhost
|
||||
constexpr auto issetStr = [](const std::string& str) { return !str.empty() ? str : "not_set"; }; // for inhost, outhost
|
||||
const auto issetNum = [](int p) { return p ? std::to_string (p) : "not_set"; }; // for inport, outport
|
||||
|
||||
// tunnel info
|
||||
|
||||
Reference in new issue
Block a user