osloup / rpms / openjade

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