mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
Simplify AnnotPagePair
Use the default destructor, copy constructor, assignment operator
This commit is contained in:
parent
47d7d04b5e
commit
33b85a74c3
1 changed files with 3 additions and 2 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue