diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-06-30 18:20:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-30 18:20:00 +0200 |
| commit | ac8a23c3ae6cd06bd26f49c4df1c99d002bef760 (patch) | |
| tree | fc7be713435041ab903e0c4c5970bf85b664b705 /src/helpers/MiscFunctions.cpp | |
| parent | d1564299d23b52e6297fa4542ce42e4a54c28cbc (diff) | |
| parent | 990d3f232b90cb876715c2712cc997f280cdc7be (diff) | |
Merge pull request #281 from hyprwm/modernize-pointers
Modernize pointers (optimization)
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index d5eece67..067a351f 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -219,12 +219,12 @@ int getWorkspaceIDFromString(const std::string& in, std::string& outName) { int lowestID = 99999; int highestID = -99999; - for (auto& w : g_pCompositor->m_lWorkspaces) { - if (w.m_iID < lowestID) - lowestID = w.m_iID; + for (auto& w : g_pCompositor->m_vWorkspaces) { + if (w->m_iID < lowestID) + lowestID = w->m_iID; - if (w.m_iID > highestID) - highestID = w.m_iID; + if (w->m_iID > highestID) + highestID = w->m_iID; } if (remains < 0) |
