Simplify AnnotPagePair

Use the default destructor, copy constructor, assignment operator
remotes/origin/Applications/19.04
Albert Astals Cid 7 years ago
parent 47d7d04b5e
commit 33b85a74c3
  1. 5
      ui/annotationpopup.h

@ -51,8 +51,9 @@ class AnnotationPopup : public QObject
AnnotPagePair( Okular::Annotation *a, int pn ) : annotation( a ), pageNumber( pn ) 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 bool operator==( const AnnotPagePair & pair ) const
{ return annotation == pair.annotation && pageNumber == pair.pageNumber; } { return annotation == pair.annotation && pageNumber == pair.pageNumber; }

Loading…
Cancel
Save