diff options
-rw-r--r-- | src/lib/FHInternalStream.h | 22 | ||||
-rw-r--r-- | src/lib/FHPath.cpp | 80 |
2 files changed, 51 insertions, 51 deletions
diff --git a/src/lib/FHInternalStream.h b/src/lib/FHInternalStream.h index bdf20ab..5f3bad5 100644 --- a/src/lib/FHInternalStream.h +++ b/src/lib/FHInternalStream.h @@ -22,35 +22,35 @@ class FHInternalStream : public librevenge::RVNGInputStream { public: FHInternalStream(librevenge::RVNGInputStream *input, unsigned long size, bool compressed=false); - ~FHInternalStream() {} - virtual bool isStructured() + ~FHInternalStream() override {} + bool isStructured() override { return false; } - virtual unsigned subStreamCount() + unsigned subStreamCount() override { return 0; } - virtual const char *subStreamName(unsigned) + const char *subStreamName(unsigned) override { return 0; } - virtual bool existsSubStream(const char *) + bool existsSubStream(const char *) override { return false; } - virtual librevenge::RVNGInputStream *getSubStreamByName(const char *) + librevenge::RVNGInputStream *getSubStreamByName(const char *) override { return 0; } - virtual librevenge::RVNGInputStream *getSubStreamById(unsigned) + librevenge::RVNGInputStream *getSubStreamById(unsigned) override { return 0; } - const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead); - int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType); - long tell(); - bool isEnd(); + const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead) override; + int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) override; + long tell() override; + bool isEnd() override; unsigned long getSize() const { return m_buffer.size(); diff --git a/src/lib/FHPath.cpp b/src/lib/FHPath.cpp index ee12860..fc8bc09 100644 --- a/src/lib/FHPath.cpp +++ b/src/lib/FHPath.cpp @@ -231,17 +231,17 @@ public: FHMoveToElement(double x, double y) : m_x(x), m_y(y) {} - ~FHMoveToElement() {} - void writeOut(librevenge::RVNGPropertyListVector &vec) const; - void writeOut(std::ostream &o) const; - void transform(const FHTransform &trafo); - FHPathElement *clone(); - void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const; - double getX() const + ~FHMoveToElement() override {} + void writeOut(librevenge::RVNGPropertyListVector &vec) const override; + void writeOut(std::ostream &o) const override; + void transform(const FHTransform &trafo) override; + FHPathElement *clone() override; + void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const override; + double getX() const override { return m_x; } - double getY() const + double getY() const override { return m_y; } @@ -256,17 +256,17 @@ public: FHLineToElement(double x, double y) : m_x(x), m_y(y) {} - ~FHLineToElement() {} - void writeOut(librevenge::RVNGPropertyListVector &vec) const; - void writeOut(std::ostream &o) const; - void transform(const FHTransform &trafo); - FHPathElement *clone(); - void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const; - double getX() const + ~FHLineToElement() override {} + void writeOut(librevenge::RVNGPropertyListVector &vec) const override; + void writeOut(std::ostream &o) const override; + void transform(const FHTransform &trafo) override; + FHPathElement *clone() override; + void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const override; + double getX() const override { return m_x; } - double getY() const + double getY() const override { return m_y; } @@ -285,17 +285,17 @@ public: m_y2(y2), m_x(x), m_y(y) {} - ~FHCubicBezierToElement() {} - void writeOut(librevenge::RVNGPropertyListVector &vec) const; - void writeOut(std::ostream &o) const; - void transform(const FHTransform &trafo); - FHPathElement *clone(); - void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const; - double getX() const + ~FHCubicBezierToElement() override {} + void writeOut(librevenge::RVNGPropertyListVector &vec) const override; + void writeOut(std::ostream &o) const override; + void transform(const FHTransform &trafo) override; + FHPathElement *clone() override; + void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const override; + double getX() const override { return m_x; } - double getY() const + double getY() const override { return m_y; } @@ -316,17 +316,17 @@ public: m_y1(y1), m_x(x), m_y(y) {} - ~FHQuadraticBezierToElement() {} - void writeOut(librevenge::RVNGPropertyListVector &vec) const; - void writeOut(std::ostream &o) const; - void transform(const FHTransform &trafo); - FHPathElement *clone(); - void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const; - double getX() const + ~FHQuadraticBezierToElement() override {} + void writeOut(librevenge::RVNGPropertyListVector &vec) const override; + void writeOut(std::ostream &o) const override; + void transform(const FHTransform &trafo) override; + FHPathElement *clone() override; + void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const override; + double getX() const override { return m_x; } - double getY() const + double getY() const override { return m_y; } @@ -348,17 +348,17 @@ public: m_sweep(sweep), m_x(x), m_y(y) {} - ~FHArcToElement() {} - void writeOut(librevenge::RVNGPropertyListVector &vec) const; - void writeOut(std::ostream &o) const; - void transform(const FHTransform &trafo); - FHPathElement *clone(); - void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const; - double getX() const + ~FHArcToElement() override {} + void writeOut(librevenge::RVNGPropertyListVector &vec) const override; + void writeOut(std::ostream &o) const override; + void transform(const FHTransform &trafo) override; + FHPathElement *clone() override; + void getBoundingBox(double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const override; + double getX() const override { return m_x; } - double getY() const + double getY() const override { return m_y; } |