diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
commit | 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch) | |
tree | fd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/windowing/StarRegisteredPaneManager.hpp | |
parent | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff) |
The Formatting String Catastrophe
Diffstat (limited to 'source/windowing/StarRegisteredPaneManager.hpp')
-rw-r--r-- | source/windowing/StarRegisteredPaneManager.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/windowing/StarRegisteredPaneManager.hpp b/source/windowing/StarRegisteredPaneManager.hpp index fb17ee5..4038525 100644 --- a/source/windowing/StarRegisteredPaneManager.hpp +++ b/source/windowing/StarRegisteredPaneManager.hpp @@ -50,7 +50,7 @@ template <typename T> shared_ptr<T> RegisteredPaneManager<KeyT>::registeredPane(KeyT const& paneId) const { if (auto v = m_registeredPanes.ptr(paneId)) return convert<T>(v->pane); - throw GuiException(strf("No pane named '%s' found in RegisteredPaneManager", outputAny(paneId))); + throw GuiException(strf("No pane named '{}' found in RegisteredPaneManager", outputAny(paneId))); } template <typename KeyT> @@ -58,7 +58,7 @@ void RegisteredPaneManager<KeyT>::registerPane( KeyT paneId, PaneLayer paneLayer, PanePtr pane, DismissCallback onDismiss) { if (!m_registeredPanes.insert(move(paneId), {move(paneLayer), move(pane), move(onDismiss)}).second) throw GuiException( - strf("Registered pane with name '%s' registered a second time in RegisteredPaneManager::registerPane", + strf("Registered pane with name '{}' registered a second time in RegisteredPaneManager::registerPane", outputAny(paneId))); } @@ -69,7 +69,7 @@ PanePtr RegisteredPaneManager<KeyT>::deregisterPane(KeyT const& paneId) { dismissPane(v->pane); return v->pane; } - throw GuiException(strf("No pane named '%s' found in RegisteredPaneManager::deregisterPane", outputAny(paneId))); + throw GuiException(strf("No pane named '{}' found in RegisteredPaneManager::deregisterPane", outputAny(paneId))); } template <typename KeyT> @@ -119,7 +119,7 @@ typename RegisteredPaneManager<KeyT>::PaneInfo const& RegisteredPaneManager<KeyT KeyT const& paneId) const { if (auto p = m_registeredPanes.ptr(paneId)) return *p; - throw GuiException(strf("No registered pane with name '%s' found in RegisteredPaneManager", outputAny(paneId))); + throw GuiException(strf("No registered pane with name '{}' found in RegisteredPaneManager", outputAny(paneId))); } } |