diff options
| author | Philip Damianik <39028343+pdamianik@users.noreply.github.com> | 2023-09-06 21:45:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-06 21:45:37 +0200 |
| commit | 8c83852704ad8d78b839bd532d73b3b9e44724b9 (patch) | |
| tree | 6e750b39b0b6af35c9a0b3b1385a7925936bcecd /src/managers/LayoutManager.cpp | |
| parent | 60c01dab01e3b58abf12c49f4a2fb224900ae401 (diff) | |
internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)
Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
Diffstat (limited to 'src/managers/LayoutManager.cpp')
| -rw-r--r-- | src/managers/LayoutManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/LayoutManager.cpp b/src/managers/LayoutManager.cpp index e3a358a2..bf4ca8bd 100644 --- a/src/managers/LayoutManager.cpp +++ b/src/managers/LayoutManager.cpp @@ -31,7 +31,7 @@ bool CLayoutManager::addLayout(const std::string& name, IHyprLayout* layout) { m_vLayouts.emplace_back(std::make_pair<>(name, layout)); - Debug::log(LOG, "Added new layout {} at {:x}", name.c_str(), (uintptr_t)layout); + Debug::log(LOG, "Added new layout {} at {:x}", name, (uintptr_t)layout); return true; } @@ -45,7 +45,7 @@ bool CLayoutManager::removeLayout(IHyprLayout* layout) { if (m_iCurrentLayoutID == IT - m_vLayouts.begin()) switchToLayout("dwindle"); - Debug::log(LOG, "Removed a layout {} at {:x}", IT->first.c_str(), (uintptr_t)layout); + Debug::log(LOG, "Removed a layout {} at {:x}", IT->first, (uintptr_t)layout); std::erase(m_vLayouts, *IT); |
