Fixed several code analysis warnings

git-svn-id: http://pugixml.googlecode.com/svn/trunk@239 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-01-20 22:15:15 +00:00
parent 9731626489
commit db550f5f80
2 changed files with 9 additions and 1 deletions

View File

@ -3129,7 +3129,7 @@ namespace pugi
for (; *str;) for (; *str;)
{ {
unsigned int ch; unsigned int ch = 0;
str = strutf8_utf16(str, ch); str = strutf8_utf16(str, ch);
result += (wchar_t)ch; result += (wchar_t)ch;
} }

View File

@ -534,6 +534,10 @@ namespace pugi
class xpath_allocator class xpath_allocator
{ {
// disable copy ctor and assignment
xpath_allocator(const xpath_allocator&);
xpath_allocator& operator=(const xpath_allocator&);
struct memory_block struct memory_block
{ {
memory_block(): next(0), size(0) memory_block(): next(0), size(0)
@ -841,6 +845,10 @@ namespace pugi
class xpath_lexer class xpath_lexer
{ {
// disable copy ctor and assignment
xpath_lexer(const xpath_lexer&);
xpath_lexer& operator=(const xpath_lexer&);
private: private:
const char* m_cur; const char* m_cur;