[libxml++] Inherit NonCopyable publicly



commit b1ab496121b3362f7584c36a451a6765168b8e7b
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Thu Oct 1 16:23:52 2015 +0200

    Inherit NonCopyable publicly
    
    Inherit NonCopyable publicly instead of privatly. It doesn't really matter,
    but private inheritance is unusual. There's no good reason to use it for
    NonCopyable. Bug #754673.

 libxml++/document.h             |    2 +-
 libxml++/parsers/parser.h       |    2 +-
 libxml++/parsers/textreader.h   |    2 +-
 libxml++/schemabase.h           |    2 +-
 libxml++/validators/validator.h |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libxml++/document.h b/libxml++/document.h
index 722e883..73ca18f 100644
--- a/libxml++/document.h
+++ b/libxml++/document.h
@@ -58,7 +58,7 @@ typedef enum {
 /**
  * Represents an XML document in the DOM model.
  */
-class Document : NonCopyable
+class Document : public NonCopyable
 {
   //Ensure that libxml is properly initialised:
   class Init
diff --git a/libxml++/parsers/parser.h b/libxml++/parsers/parser.h
index 802a159..4384b9f 100644
--- a/libxml++/parsers/parser.h
+++ b/libxml++/parsers/parser.h
@@ -33,7 +33,7 @@ namespace xmlpp {
  *
  * Abstract base class for DOM parser and SAX parser.
  */
-class Parser : NonCopyable
+class Parser : public NonCopyable
 {
 public:
   Parser();
diff --git a/libxml++/parsers/textreader.h b/libxml++/parsers/textreader.h
index 9acd6cd..1ebd81a 100644
--- a/libxml++/parsers/textreader.h
+++ b/libxml++/parsers/textreader.h
@@ -26,7 +26,7 @@ namespace xmlpp
  * A reader that provides fast, non-cached, forward-only access to XML data,
  * in the style of .Net's <a 
href="http://msdn.microsoft.com/en-us/library/system.xml.xmltextreader.aspx";>XmlTextReader</a> class.
  */
-class TextReader: NonCopyable
+class TextReader: public NonCopyable
 {
   public:
     enum xmlNodeType {
diff --git a/libxml++/schemabase.h b/libxml++/schemabase.h
index e0f3461..c7330b2 100644
--- a/libxml++/schemabase.h
+++ b/libxml++/schemabase.h
@@ -35,7 +35,7 @@ class Document;
  *
  * @newin{2,38}
  */
-class SchemaBase : NonCopyable
+class SchemaBase : public NonCopyable
 {
 public:
   SchemaBase();
diff --git a/libxml++/validators/validator.h b/libxml++/validators/validator.h
index 1528501..93f443f 100644
--- a/libxml++/validators/validator.h
+++ b/libxml++/validators/validator.h
@@ -28,7 +28,7 @@ class Document;
 
 /** Base class for XML validators.
  */
-class Validator : NonCopyable
+class Validator : public NonCopyable
 {
 public:
   Validator();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]