osloup / rpms / openjade

Forked from rpms/openjade a year ago
Clone

Blame SOURCES/openjade-1.3.2-gcc46.patch

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