Skip to content

Commit 29214f3

Browse files
committed
Update docs
1 parent 155d457 commit 29214f3

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

docs/notifications.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ Path: `Nickvision::Notifications::NotifyIcon`
8888
```
8989
- Constructs a NotifyIcon.
9090
- Accepts: The `HWND` handle for the main application window, hwnd, the context menu model for the icon, contextMenu, and whether or not to hide the icon by default, hidden.
91-
- Throws: std::logic_error if Aura::init() was not called yet.
9291
- Throws: std::runtime_error if unable to create the NotifyIcon.
9392
- ```cpp
9493
~NotifyIcon()
@@ -224,15 +223,13 @@ Path: `Nickvision::Notifications::ShellNotification`
224223
- Accepts: The `ShellNotificationSentEventArgs` containing the information to show, e, and the `HWND` handle for the main application window, hwnd. The hwnd parameter is only used once on the initial creation of the static `NotifyIcon` and then is ignored on future calls.
225224
- Note: This function is only available on the Windows platform. It uses `Nickvision::Notifications::NotifyIcon`.
226225
- Note: This function supports the action "open" with action param being a path of a file or folder to open.
227-
- Throws: std::logic_error if Aura::init() was not called yet
228226
- ```cpp
229227
void send(const ShellNotificationSentEventArgs& e, const std::string& openText)
230228
```
231229
- Accepts: The `ShellNotificationSentEventArgs` containing the information to show, e, and the localized text of "Open", openText.
232230
- Note: This function is only available on the Linux platform.
233231
- Note: This function supports the action "open" with action param being a path of a file or folder to open. The app must define an "app.open" action to handle this event.
234-
- Throws: std::logic_error if Aura::init() was not called yet
235-
232+
236233
## ShellNotificationSentEventArgs
237234
Description: Event args for when a shell notification is sent.
238235

include/notifications/notifyicon.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace Nickvision::Notifications
2727
* @param hwnd The HWND handle of the main application window
2828
* @param menu The model for the context menu of the NotifyIcon
2929
* @param hidden Whether or not the NotifyIcon should be hidden by default
30-
* @throw std::logic_error Thrown if Aura::init() was not called yet
3130
* @throw std::runtime_error Thrown if unable to create the NotifyIcon
3231
*/
3332
NotifyIcon(HWND hwnd, const NotifyIconMenu& contextMenu = { }, bool hidden = false);

include/notifications/shellnotification.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ namespace Nickvision::Notifications::ShellNotification
1616
* @brief Supports the action "open" with action param being a path of a file or folder to open.
1717
* @param e ShellNotificationSentEventArgs
1818
* @param hwnd The HWND handle of the main application window. This parameter is only used once on the initial creation of the static NotifyIcon and then is ignored on future calls
19-
* @throw std::logic_error Thrown if Aura::init() was not yet called
2019
*/
2120
void send(const ShellNotificationSentEventArgs& e, HWND hwnd);
2221
#elif defined(__linux__)
@@ -26,7 +25,6 @@ namespace Nickvision::Notifications::ShellNotification
2625
* @brief Supports the action "open" with action param being a path of a file or folder to open. The app must define an "app.open" action to handle this event.
2726
* @param e ShellNotificationSentEventArgs
2827
* @param openText Localized text of "Open"
29-
* @throw std::logic_error Thrown if Aura::init() was not yet called
3028
*/
3129
void send(const ShellNotificationSentEventArgs& e, const std::string& openText);
3230
#endif

src/keyring/passwordgenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace Nickvision::Keyring
4545
std::string PasswordGenerator::next(size_t length)
4646
{
4747
std::string pass;
48-
for(int i = 0; i < length; i++)
48+
for(size_t i = 0; i < length; i++)
4949
{
5050
pass += m_chars[rand() % m_chars.size()];
5151
}

0 commit comments

Comments
 (0)