summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLWriter.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-03-07 00:13:56 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-09 15:11:11 (GMT)
commit90086767ddad60205302ad88257d60d68fc7fd0a (patch)
tree5d7dbd1a49202d0d053ac5f598c9d1d074ca8668 /Source/cmXMLWriter.h
parent8401b6ac4ebe8bc383f288119af77ef09eb3d62b (diff)
downloadCMake-90086767ddad60205302ad88257d60d68fc7fd0a.zip
CMake-90086767ddad60205302ad88257d60d68fc7fd0a.tar.gz
CMake-90086767ddad60205302ad88257d60d68fc7fd0a.tar.bz2
cmGlobalVisualStudio10Generator: Use cmXMLWriter RAII helpers
This simplifies our XML generation code and avoids the need to disable clang-format.
Diffstat (limited to 'Source/cmXMLWriter.h')
-rw-r--r--Source/cmXMLWriter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmXMLWriter.h b/Source/cmXMLWriter.h
index 4324873..80940ee 100644
--- a/Source/cmXMLWriter.h
+++ b/Source/cmXMLWriter.h
@@ -157,12 +157,12 @@ public:
{
xmlwr.StartElement(tag);
}
- cmXMLElement(cmXMLElement const& par, const char* tag)
+ cmXMLElement(cmXMLElement& par, const char* tag)
: xmlwr(par.xmlwr)
{
xmlwr.StartElement(tag);
}
- cmXMLElement(cmXMLDocument const& doc, const char* tag)
+ cmXMLElement(cmXMLDocument& doc, const char* tag)
: xmlwr(doc.xmlwr)
{
xmlwr.StartElement(tag);