modernize: Pass arguments by value and move in constructors
[quassel.git] / src / uisupport / aboutdata.h
index 6c306be..072bcb7 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2015 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 
 #pragma once
 
+#include "uisupport-export.h"
+
+#include <QList>
 #include <QLocale>
+#include <QString>
 
 #ifdef HAVE_KF5
 #  include <KCoreAddons/KAboutData>
@@ -32,7 +36,7 @@
  *
  * This is used to show a list of contributors in the About Quassel dialog.
  */
-class AboutPerson
+class UISUPPORT_EXPORT AboutPerson
 {
 public:
     /**
@@ -44,7 +48,7 @@ public:
      * @param[in] emailAddress The person's email address, if applicable
      * @param[in] translatedLanguage The language the person helped translate (only applicable for translators)
      */
-    AboutPerson(const QString &name, const QString &nick, const QString &task, const QString &emailAddress = QString(), QLocale::Language translatedLanguage = QLocale::C);
+    AboutPerson(QString name, QString nick, QString task, QString emailAddress = QString(), QLocale::Language translatedLanguage = QLocale::C);
 
     /**
      * Gets the person's name.
@@ -104,7 +108,7 @@ private:
  * the About Quassel dialog. Additionally, this class can provide a KAboutData object to be shown
  * if KDE integration is enabled.
  */
-class AboutData : public QObject
+class UISUPPORT_EXPORT AboutData : public QObject
 {
     Q_OBJECT
 public: