Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 30th, 2010  |  syntax: C++  |  size: 3.20 KB  |  hits: 109  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: okular/generators/fax/faxdocument.h
  2. ===================================================================
  3. --- okular/generators/fax/faxdocument.h (revision 1109126)
  4. +++ okular/generators/fax/faxdocument.h (working copy)
  5. @@ -33,7 +33,7 @@
  6.       *
  7.       * @param type The type of the fax document.
  8.       */
  9. -    FaxDocument( const QString &fileName, DocumentType type = G3 );
  10. +    explicit FaxDocument( const QString &fileName, DocumentType type = G3 );
  11.  
  12.      /**
  13.       * Destroys the fax document.
  14. Index: okular/ui/annotationmodel.h
  15. ===================================================================
  16. --- okular/ui/annotationmodel.h (revision 1109126)
  17. +++ okular/ui/annotationmodel.h (working copy)
  18. @@ -29,7 +29,7 @@
  19.              PageRole
  20.          };
  21.  
  22. -        AnnotationModel( Okular::Document *document, QObject *parent = 0 );
  23. +        explicit AnnotationModel( Okular::Document *document, QObject *parent = 0 );
  24.          virtual ~AnnotationModel();
  25.  
  26.          // reimplementations from QAbstractItemModel
  27. Index: okular/ui/formwidgets.h
  28. ===================================================================
  29. --- okular/ui/formwidgets.h     (revision 1109126)
  30. +++ okular/ui/formwidgets.h     (working copy)
  31. @@ -109,7 +109,7 @@
  32.      Q_OBJECT
  33.  
  34.      public:
  35. -        PushButtonEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
  36. +        explicit PushButtonEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
  37.  
  38.      private slots:
  39.          void slotClicked();
  40. @@ -123,7 +123,7 @@
  41.      Q_OBJECT
  42.  
  43.      public:
  44. -        CheckBoxEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
  45. +        explicit CheckBoxEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
  46.  
  47.          // reimplemented from FormWidgetIface
  48.          void setFormWidgetsController( FormWidgetsController *controller );
  49. @@ -141,7 +141,7 @@
  50.      Q_OBJECT
  51.  
  52.      public:
  53. -        RadioButtonEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
  54. +        explicit RadioButtonEdit( Okular::FormFieldButton * button, QWidget * parent = 0 );
  55.  
  56.          // reimplemented from FormWidgetIface
  57.          void setFormWidgetsController( FormWidgetsController *controller );
  58. Index: okular/ui/tocmodel.h
  59. ===================================================================
  60. --- okular/ui/tocmodel.h        (revision 1109126)
  61. +++ okular/ui/tocmodel.h        (working copy)
  62. @@ -25,7 +25,7 @@
  63.      Q_OBJECT
  64.  
  65.      public:
  66. -        TOCModel( Okular::Document *document, QObject *parent = 0 );
  67. +        explicit TOCModel( Okular::Document *document, QObject *parent = 0 );
  68.          virtual ~TOCModel();
  69.  
  70.          // reimplementations from QAbstractItemModel
  71. Index: okular/ui/annotationpopup.h
  72. ===================================================================
  73. --- okular/ui/annotationpopup.h (revision 1109126)
  74. +++ okular/ui/annotationpopup.h (working copy)
  75. @@ -25,8 +25,8 @@
  76.      Q_OBJECT
  77.  
  78.      public:
  79. -        AnnotationPopup( Okular::Document *document,
  80. -                         QWidget *parent = 0 );
  81. +        explicit AnnotationPopup( Okular::Document *document,
  82. +                                  QWidget *parent = 0 );
  83.  
  84.          void addAnnotation( Okular::Annotation* annotation, int pageNumber );