From 664638059a1a680d7d8cdfa1ac30430debb4a4fc Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sat, 8 May 2010 21:35:42 +0000 Subject: Minor coverage improvements git-svn-id: http://pugixml.googlecode.com/svn/trunk@392 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 2 ++ tests/test_deprecated.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 01ef4cb..346a326 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -207,12 +207,14 @@ namespace pugi return (find == 1 && *dst == 0 && *src == 0); } +#ifdef PUGIXML_WCHAR_MODE // Convert string to wide string, assuming all symbols are ASCII void widen_ascii(wchar_t* dest, const char* source) { for (const char* i = source; *i; ++i) *dest++ = *i; *dest = 0; } +#endif } } diff --git a/tests/test_deprecated.cpp b/tests/test_deprecated.cpp index 09509bf..8565f96 100644 --- a/tests/test_deprecated.cpp +++ b/tests/test_deprecated.cpp @@ -110,6 +110,7 @@ TEST_XML(dom_node_child_value_w, "value1") -- cgit v1.2.3