Simplify AnnotPagePair

Use the default destructor, copy constructor, assignment operator
This commit is contained in:
Albert Astals Cid 2019-01-10 00:39:11 +01:00
parent 47d7d04b5e
commit 33b85a74c3

View file

@ -51,8 +51,9 @@ class AnnotationPopup : public QObject
AnnotPagePair( Okular::Annotation *a, int pn ) : annotation( a ), pageNumber( pn )
{ }
AnnotPagePair( const AnnotPagePair & pair ) : annotation( pair.annotation ), pageNumber( pair.pageNumber )
{ }
~AnnotPagePair() = default;
AnnotPagePair( const AnnotPagePair & pair ) = default;
AnnotPagePair &operator=( const AnnotPagePair & pair ) = default;
bool operator==( const AnnotPagePair & pair ) const
{ return annotation == pair.annotation && pageNumber == pair.pageNumber; }