From 33b85a74c3c14c0034262cdbaf2ada56e13832a4 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 10 Jan 2019 00:39:11 +0100 Subject: [PATCH] Simplify AnnotPagePair Use the default destructor, copy constructor, assignment operator --- ui/annotationpopup.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/annotationpopup.h b/ui/annotationpopup.h index 9d5b48fbc..fcb0d5077 100644 --- a/ui/annotationpopup.h +++ b/ui/annotationpopup.h @@ -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; }