summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;