Remove const and reference of base types.

Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
Camila 2021-03-30 12:53:47 +02:00 committed by allexzander (Rebase PR Action)
parent 835a61c5ee
commit 98cfc362f7
9 changed files with 9 additions and 9 deletions

View file

@ -227,7 +227,7 @@ bool AccountState::isDesktopNotificationsAllowed() const
return _isDesktopNotificationsAllowed;
}
void AccountState::setDesktopNotificationsAllowed(const bool isAllowed)
void AccountState::setDesktopNotificationsAllowed(bool isAllowed)
{
_isDesktopNotificationsAllowed = isAllowed;
}

View file

@ -182,7 +182,7 @@ public:
/** Set desktop notifications status retrieved by the notificatons endpoint
*/
void setDesktopNotificationsAllowed(const bool isAllowed);
void setDesktopNotificationsAllowed(bool isAllowed);
/** Fetch the user status (status, icon, message)
*/

View file

@ -64,7 +64,7 @@ void ServerNotificationHandler::slotEtagResponseHeaderReceived(const QByteArray
}
}
void ServerNotificationHandler::slotAllowDesktopNotificationsChanged(const bool isAllowed)
void ServerNotificationHandler::slotAllowDesktopNotificationsChanged(bool isAllowed)
{
auto *account = qvariant_cast<AccountState *>(sender()->property(propertyAccountStateC));
if (account != nullptr) {

View file

@ -26,7 +26,7 @@ private slots:
void slotNotificationsReceived(const QJsonDocument &json, int statusCode);
void slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode);
void slotIconDownloaded(QByteArray iconData);
void slotAllowDesktopNotificationsChanged(const bool isAllowed);
void slotAllowDesktopNotificationsChanged(bool isAllowed);
private:
QPointer<JsonApiJob> _notificationJob;

View file

@ -698,7 +698,7 @@ Q_INVOKABLE bool UserModel::isUserConnected(const int &id)
return _users[id]->isConnected();
}
Q_INVOKABLE QUrl UserModel::statusIcon(const int &id)
Q_INVOKABLE QUrl UserModel::statusIcon(int id)
{
if (id < 0 || id >= _users.size()) {
return {};

View file

@ -140,7 +140,7 @@ public:
Q_INVOKABLE bool currentUserHasLocalFolder();
int currentUserId() const;
Q_INVOKABLE bool isUserConnected(const int &id);
Q_INVOKABLE QUrl statusIcon(const int &id);
Q_INVOKABLE QUrl statusIcon(int id);
Q_INVOKABLE void switchCurrentUser(const int &id);
Q_INVOKABLE void login(const int &id);
Q_INVOKABLE void logout(const int &id);

View file

@ -53,7 +53,7 @@ void UserStatus::fetchUserStatus(AccountPtr account)
_job->start();
}
void UserStatus::slotFetchUserStatusFinished(const QJsonDocument &json, const int statusCode)
void UserStatus::slotFetchUserStatusFinished(const QJsonDocument &json, int statusCode)
{
const QJsonObject defaultValues
{

View file

@ -42,7 +42,7 @@ public:
QUrl icon() const;
private slots:
void slotFetchUserStatusFinished(const QJsonDocument &json, const int statusCode);
void slotFetchUserStatusFinished(const QJsonDocument &json, int statusCode);
signals:
void fetchUserStatusFinished();

View file

@ -425,7 +425,7 @@ signals:
* @brief desktopNotificationStatusReceived - signal to report if notifications are allowed
* @param status - set desktop notifications allowed status
*/
void allowDesktopNotificationsChanged(const bool isAllowed);
void allowDesktopNotificationsChanged(bool isAllowed);
private:
QUrlQuery _additionalParams;