Skip to content

NotificationManager.h: Reorder notification struct fields to allow ea…#2

Merged
GDV0 merged 1 commit intoGDV0:mainfrom
InfiniTimeOrg:main
Jul 11, 2023
Merged

NotificationManager.h: Reorder notification struct fields to allow ea…#2
GDV0 merged 1 commit intoGDV0:mainfrom
InfiniTimeOrg:main

Conversation

@GDV0
Copy link
Owner

@GDV0 GDV0 commented Jul 11, 2023

…sier creation. (InfiniTimeOrg#1774)

This commit changes the order for the notification struct fields to allow the creation of notifications using a string literal.

NotificationManager::Notifiation notification {
  "String literal with notification text",
  42,
  NotificationManager::Categories::SimpleAlert
};

…sier creation. (#1774)

This commit changes the order for the notification struct fields to allow the creation of notifications using a string literal.
```cpp
NotificationManager::Notifiation notification {
  "String literal with notification text",
  42,
  NotificationManager::Categories::SimpleAlert
};
```

Co-authored-by: minacode <minamoto9@web.de>
@GDV0 GDV0 merged commit 06a31e7 into GDV0:main Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants