mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Remove const and reference of base types.
Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
835a61c5ee
commit
98cfc362f7
9 changed files with 9 additions and 9 deletions
|
@ -227,7 +227,7 @@ bool AccountState::isDesktopNotificationsAllowed() const
|
|||
return _isDesktopNotificationsAllowed;
|
||||
}
|
||||
|
||||
void AccountState::setDesktopNotificationsAllowed(const bool isAllowed)
|
||||
void AccountState::setDesktopNotificationsAllowed(bool isAllowed)
|
||||
{
|
||||
_isDesktopNotificationsAllowed = isAllowed;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
*/
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue