diff options
| author | 2022-07-30 17:21:47 +0100 | |
|---|---|---|
| committer | 2022-07-30 19:15:41 +0100 | |
| commit | 3c455a8511f8c72552afb6ebe35a8e7c9b9af979 (patch) | |
| tree | 603c14aa8d8dfafb931cf3ca1b3503fdfc979528 /src/modules/m_cap.cpp | |
| parent | Add support for clearing the target of a dynamic_reference. (diff) | |
Modernize various minor legacy C++isms.
Diffstat (limited to 'src/modules/m_cap.cpp')
| -rw-r--r-- | src/modules/m_cap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index b4ba0d7ce..fcfea8a01 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -286,7 +286,7 @@ namespace // XXX: Cast away the const because IS_LOCAL() doesn't handle it LocalUser* user = IS_LOCAL(const_cast<User*>(static_cast<const User*>(container))); if (!user) - return std::string(); + return {}; // List requested caps std::vector<std::string> result; |
