osloup / rpms / openjade

Forked from rpms/openjade a year ago
Clone

Blame SOURCES/openjade-1.3.2-gcc46.patch

32f2ee
If a class or struct has no user-defined default constructor, C++ doesn't
32f2ee
allow you to default construct a const instance of it.
32f2ee
32f2ee
https://bugs.gentoo.org/358021
32f2ee
http://clang.llvm.org/compatibility.html#default_init_const
32f2ee
http://gcc.gnu.org/PR44499
32f2ee
32f2ee
32f2ee
--- a/jade/TeXFOTBuilder.cxx
32f2ee
+++ b/jade/TeXFOTBuilder.cxx
32f2ee
@@ -88,6 +88,8 @@ public:
32f2ee
       value.convertString(nic_.placement);
32f2ee
       }
32f2ee
     ExtensionFlowObj *copy() const { return new PageFloatFlowObj(*this); }
32f2ee
+  public:
32f2ee
+    PageFloatFlowObj() {}
32f2ee
   private:
32f2ee
     PageFloatNIC nic_;
32f2ee
     StringC name_;
32f2ee
@@ -101,6 +103,8 @@ public:
32f2ee
       fotb.endPageFootnote();
32f2ee
     }
32f2ee
     ExtensionFlowObj *copy() const { return new PageFootnoteFlowObj(*this); }
32f2ee
+  public:
32f2ee
+    PageFootnoteFlowObj() {}
32f2ee
   private:
32f2ee
   };
32f2ee
   //////////////////////////////////////////////////////////////////////
32f2ee
--- a/jade/TransformFOTBuilder.cxx
32f2ee
+++ b/jade/TransformFOTBuilder.cxx
32f2ee
@@ -41,6 +41,7 @@ public:
32f2ee
   };
32f2ee
   class EntityRefFlowObj : public TransformExtensionFlowObj {
32f2ee
   public:
32f2ee
+    EntityRefFlowObj() {}
32f2ee
     void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
32f2ee
       fotb.entityRef(name_);
32f2ee
     }
32f2ee
@@ -56,6 +57,7 @@ public:
32f2ee
   };
32f2ee
   class ProcessingInstructionFlowObj : public TransformExtensionFlowObj {
32f2ee
   public:
32f2ee
+    ProcessingInstructionFlowObj() {}
32f2ee
     void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
32f2ee
       fotb.processingInstruction(data_);
32f2ee
     }
32f2ee
@@ -98,6 +100,8 @@ public:
32f2ee
       }
32f2ee
     }
32f2ee
     ExtensionFlowObj *copy() const { return new EmptyElementFlowObj(*this); }
32f2ee
+  public:
32f2ee
+    EmptyElementFlowObj() {}
32f2ee
   private:
32f2ee
     ElementNIC nic_;
32f2ee
   };
32f2ee
@@ -133,6 +137,8 @@ public:
32f2ee
       }
32f2ee
     }
32f2ee
     ExtensionFlowObj *copy() const { return new ElementFlowObj(*this); }
32f2ee
+  public:
32f2ee
+    ElementFlowObj() {}
32f2ee
   private:
32f2ee
     ElementNIC nic_;
32f2ee
   };
32f2ee
@@ -150,6 +156,8 @@ public:
32f2ee
       value.convertString(systemId_);
32f2ee
     }
32f2ee
     ExtensionFlowObj *copy() const { return new EntityFlowObj(*this); }
32f2ee
+  public:
32f2ee
+    EntityFlowObj() {}
32f2ee
   private:
32f2ee
     StringC systemId_;
32f2ee
   };
32f2ee
@@ -174,6 +182,8 @@ public:
32f2ee
       }
32f2ee
     }
32f2ee
     ExtensionFlowObj *copy() const { return new DocumentTypeFlowObj(*this); }
32f2ee
+  public:
32f2ee
+    DocumentTypeFlowObj() {}
32f2ee
   private:
32f2ee
     DocumentTypeNIC nic_;
32f2ee
   };