diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-06 20:27:39 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-06 20:27:39 (GMT) |
commit | d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8 (patch) | |
tree | a10ebfd356b5592f2e8c39e9ce35701249ce6bd7 /Source/cmXMLWriter.h | |
parent | ca8c3d64c8accebeacf322f0574494ffddb039c5 (diff) | |
download | CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.zip CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.tar.gz CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.tar.bz2 |
clang-tidy: modernize-return-braced-init-list
Diffstat (limited to 'Source/cmXMLWriter.h')
-rw-r--r-- | Source/cmXMLWriter.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmXMLWriter.h b/Source/cmXMLWriter.h index a5b06af..c4103cc 100644 --- a/Source/cmXMLWriter.h +++ b/Source/cmXMLWriter.h @@ -77,14 +77,11 @@ private: void CloseStartElement(); private: - static cmXMLSafe SafeAttribute(const char* value) - { - return cmXMLSafe(value); - } + static cmXMLSafe SafeAttribute(const char* value) { return { value }; } static cmXMLSafe SafeAttribute(std::string const& value) { - return cmXMLSafe(value); + return { value }; } template <typename T> |