summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLWriter.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-06 20:27:39 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-09-06 20:27:39 (GMT)
commitd63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8 (patch)
treea10ebfd356b5592f2e8c39e9ce35701249ce6bd7 /Source/cmXMLWriter.h
parentca8c3d64c8accebeacf322f0574494ffddb039c5 (diff)
downloadCMake-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.h7
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>