summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-01-20 22:15:15 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-01-20 22:15:15 +0000
commitdb550f5f805f7627d5929be1203869df0a21074f (patch)
tree5b0d03401d89f4e37d9ec724a40b6fbf84b5dd45
parent97316264895a7b28023fb769bd29ca4da2fd484a (diff)
Fixed several code analysis warnings
git-svn-id: http://pugixml.googlecode.com/svn/trunk@239 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.cpp2
-rw-r--r--src/pugixpath.cpp8
2 files changed, 9 insertions, 1 deletions
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;