diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index 72f89fd49a43d8d5e6e312d5b7993ac9680a3018..3bccd8f3a77ad8e3dd8714789190714ebf0cb4b7 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -199,12 +199,12 @@ TimelineViewManager::openGlobalUserProfile(QString userId) emit openProfile(profile); } -UserProfile* +UserProfile * TimelineViewManager::getGlobalUserProfile(QString userId) { UserProfile *profile = new UserProfile{QString{}, userId, this}; QQmlEngine::setObjectOwnership(profile, QQmlEngine::JavaScriptOwnership); - return(profile); + return (profile); } void diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h index 807fe76fb6eb6824d6ebda4562876d125dc070a0..07ebfe794330ec275c13215e63dbe715681a8cf3 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h @@ -67,7 +67,7 @@ public: Q_INVOKABLE void openRoomSettings(QString room_id); Q_INVOKABLE void openInviteUsers(QString roomId); Q_INVOKABLE void openGlobalUserProfile(QString userId); - Q_INVOKABLE UserProfile* getGlobalUserProfile(QString userId); + Q_INVOKABLE UserProfile *getGlobalUserProfile(QString userId); Q_INVOKABLE void focusMessageInput();