From db550f5f805f7627d5929be1203869df0a21074f Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 20 Jan 2010 22:15:15 +0000 Subject: Fixed several code analysis warnings git-svn-id: http://pugixml.googlecode.com/svn/trunk@239 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 2 +- src/pugixpath.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 0a50497..33bd910 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3129,7 +3129,7 @@ namespace pugi for (; *str;) { - unsigned int ch; + unsigned int ch = 0; str = strutf8_utf16(str, ch); result += (wchar_t)ch; } diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index 41d7de9..b7efa46 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -534,6 +534,10 @@ namespace pugi class xpath_allocator { + // disable copy ctor and assignment + xpath_allocator(const xpath_allocator&); + xpath_allocator& operator=(const xpath_allocator&); + struct memory_block { memory_block(): next(0), size(0) @@ -841,6 +845,10 @@ namespace pugi class xpath_lexer { + // disable copy ctor and assignment + xpath_lexer(const xpath_lexer&); + xpath_lexer& operator=(const xpath_lexer&); + private: const char* m_cur; -- cgit v1.2.3