Skip to content

Commit 73c970b

Browse files
committed
rename function
1 parent b531b94 commit 73c970b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/platform/desktop_notifications/desktopnotify.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ DesktopNotify::DesktopNotify(Settings& settings_)
4444
connect(&notifyCore, &Snore::SnoreCore::notificationClosed, this, &DesktopNotify::onNotificationClose);
4545
}
4646

47-
QString DesktopNotify::sanitize_text_for_notifications(const QString& input_text)
47+
QString DesktopNotify::sanitizeTextForNotifications(const QString& input_text)
4848
{
4949
QString output_text = QString(input_text);
5050
output_text.replace(QRegularExpression("[^a-zA-Z0-9 _:]"), "_"); // allow only a A-Z and 0-9 and "_" and " " and ":" chars
51-
// qDebug() << "sanitize_text_for_notifications: input:" << input_text << "output:" << output_text;
51+
// qDebug() << "sanitizeTextForNotifications: input:" << input_text << "output:" << output_text;
5252
return output_text;
5353
}
5454

@@ -59,8 +59,8 @@ void DesktopNotify::notifyMessage(const NotificationData& notificationData)
5959
}
6060

6161
auto icon = notificationData.pixmap.isNull() ? snoreIcon : Snore::Icon(notificationData.pixmap);
62-
auto title_sanitized = sanitize_text_for_notifications(notificationData.title);
63-
auto message_sanitizied = sanitize_text_for_notifications(notificationData.message);
62+
auto title_sanitized = sanitizeTextForNotifications(notificationData.title);
63+
auto message_sanitizied = sanitizeTextForNotifications(notificationData.message);
6464
auto newNotification = Snore::Notification{snoreApp, Snore::Alert(), title_sanitized, message_sanitizied, icon, 0};
6565
latestId = newNotification.id();
6666

src/platform/desktop_notifications/desktopnotify.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class DesktopNotify : public QObject
3535
Q_OBJECT
3636
public:
3737
explicit DesktopNotify(Settings& settings);
38-
QString sanitize_text_for_notifications(const QString& input_text);
38+
QString sanitizeTextForNotifications(const QString& input_text);
3939

4040
public slots:
4141
void notifyMessage(const NotificationData& notificationData);

0 commit comments

Comments
 (0)