[poppler] qt5/src

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Jan 9 22:41:37 UTC 2018


 qt5/src/poppler-page-transition.cc |   10 ++++++++++
 qt5/src/poppler-page-transition.h  |    5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

New commits:
commit 43ad7071aa126d3b6754421b544e114d87fdd82a
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Jan 9 23:41:01 2018 +0100

    qt5: Implement operator= for PageTransition

diff --git a/qt5/src/poppler-page-transition.cc b/qt5/src/poppler-page-transition.cc
index 759592e9..2c4a7ef9 100644
--- a/qt5/src/poppler-page-transition.cc
+++ b/qt5/src/poppler-page-transition.cc
@@ -62,6 +62,16 @@ PageTransition::~PageTransition()
   delete data;
 }
 
+PageTransition& PageTransition::operator=(const PageTransition &other)
+{
+  if ( this != &other ) {
+    delete data;
+    data = new PageTransitionData(*other.data);
+  }
+
+  return *this;
+}
+
 PageTransition::Type PageTransition::type() const
 {
   return (Poppler::PageTransition::Type)data->pt->getType();
diff --git a/qt5/src/poppler-page-transition.h b/qt5/src/poppler-page-transition.h
index c53ddf28..f7cd4c54 100644
--- a/qt5/src/poppler-page-transition.h
+++ b/qt5/src/poppler-page-transition.h
@@ -101,7 +101,10 @@ class POPPLER_QT5_EXPORT PageTransition {
 
   /** \brief copy constructor */
   PageTransition(const PageTransition &pt);
-  
+
+  /** \brief assignment operator \since 0.63 */
+  PageTransition& operator=(const PageTransition &other);
+
   /**
      Destructor
   */


More information about the poppler mailing list