Commit 33b85a74 authored by Albert Astals Cid's avatar Albert Astals Cid

Simplify AnnotPagePair

Use the default destructor, copy constructor, assignment operator
parent 47d7d04b
......@@ -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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment