diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index ad00867..6567520 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1691,7 +1691,7 @@ XMLError XMLDocument::Parse( const char* p, size_t len )
}
-void XMLDocument::Print( XMLPrinter* streamer )
+void XMLDocument::Print( XMLPrinter* streamer ) const
{
XMLPrinter stdStreamer( stdout );
if ( !streamer ) {
@@ -1839,8 +1839,8 @@ void XMLPrinter::PrintString( const char* p, bool restricted )
void XMLPrinter::PushHeader( bool writeBOM, bool writeDec )
{
- static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 };
if ( writeBOM ) {
+ static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 };
Print( "%s", bom );
}
if ( writeDec ) {
diff --git a/tinyxml2.h b/tinyxml2.h
index 2c11d13..07ddc2b 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1511,7 +1511,7 @@ public:
// printer.CStr() has a const char* to the XML
@endverbatim
*/
- void Print( XMLPrinter* streamer=0 );
+ void Print( XMLPrinter* streamer=0 ) const;
virtual bool Accept( XMLVisitor* visitor ) const;
/**
diff --git a/tinyxml2/tinyxml2.sln b/tinyxml2/tinyxml2.sln
index 24d5ce6..d4f8f8a 100755
--- a/tinyxml2/tinyxml2.sln
+++ b/tinyxml2/tinyxml2.sln
@@ -1,18 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual C++ Express 2010
+# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyxml2", "tinyxml2.vcxproj", "{D1C528B6-AA02-4D29-9D61-DC08E317A70D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
+ Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
+ Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Debug|Win32.ActiveCfg = Debug|Win32
{D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Debug|Win32.Build.0 = Debug|Win32
+ {D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Debug|x64.ActiveCfg = Debug|x64
+ {D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Debug|x64.Build.0 = Debug|x64
{D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Release|Win32.ActiveCfg = Release|Win32
{D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Release|Win32.Build.0 = Release|Win32
+ {D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Release|x64.ActiveCfg = Release|x64
+ {D1C528B6-AA02-4D29-9D61-DC08E317A70D}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/tinyxml2/tinyxml2.vcxproj b/tinyxml2/tinyxml2.vcxproj
index d13b5c6..b338bd1 100755
--- a/tinyxml2/tinyxml2.vcxproj
+++ b/tinyxml2/tinyxml2.vcxproj
@@ -5,10 +5,18 @@
Debug
Win32
+
+ Debug
+ x64
+
Release
Win32
+
+ Release
+ x64
+
{D1C528B6-AA02-4D29-9D61-DC08E317A70D}
@@ -21,33 +29,69 @@
true
Unicode
+
+ Application
+ true
+ Unicode
+
Application
false
true
Unicode
+
+ Application
+ false
+ true
+ Unicode
+
+
+
+
+
+
+
true
+
+ true
+
false
+
+ false
+
- Level3
+ Level4
+ Disabled
+ WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+
+
+ Console
+ true
+
+
+
+
+
+
+ Level4
Disabled
WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
@@ -58,19 +102,50 @@
- Level3
+ Level4
MaxSpeed
true
true
WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ AnySuitable
+ Speed
+ true
+ true
+ true
+ false
Console
true
true
true
+ true
+
+
+
+
+ Level4
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ AnySuitable
+ Speed
+ true
+ true
+ true
+ false
+
+
+ Console
+ true
+ true
+ true
+ true