From 5d1aec10faa758f9b488f53d00f939bb40dcf7f8 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 28 Jun 2017 14:51:17 +0300 Subject: [PATCH] Extract duplicated text string --- xmltest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xmltest.cpp b/xmltest.cpp index 276c61b..799433a 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -1615,13 +1615,14 @@ int main( int argc, const char ** argv ) // If it doesn't assert, it passes. Caused by objects // getting created during parsing which are then // inaccessible in the memory pools. + const char* xmlText = ""; { XMLDocument doc; - doc.Parse(""); + doc.Parse(xmlText); } { XMLDocument doc; - doc.Parse(""); + doc.Parse(xmlText); doc.Clear(); } }