internal: refactor to use empty() (#10599)
This commit is contained in:
parent
4078e1d17c
commit
69c2b2926e
20 changed files with 57 additions and 57 deletions
|
|
@ -326,7 +326,7 @@ SWorkspaceIDName getWorkspaceIDNameFromString(const std::string& in) {
|
|||
finalWSID = curID;
|
||||
}
|
||||
if (finalWSID <= 0 || invalidWSes.contains(finalWSID)) {
|
||||
if (namedWSes.size()) {
|
||||
if (!namedWSes.empty()) {
|
||||
// Go to the named workspaces
|
||||
// Need remainingWSes more
|
||||
auto namedWSIdx = namedWSes.size() - remainingWSes;
|
||||
|
|
|
|||
|
|
@ -988,7 +988,7 @@ void CMonitor::setupDefaultWS(const SMonitorRule& monitorRule) {
|
|||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m_id);
|
||||
PNEWWORKSPACE->startAnim(true, true, true);
|
||||
} else {
|
||||
if (newDefaultWorkspaceName == "")
|
||||
if (newDefaultWorkspaceName.empty())
|
||||
newDefaultWorkspaceName = std::to_string(wsID);
|
||||
|
||||
PNEWWORKSPACE = g_pCompositor->m_workspaces.emplace_back(CWorkspace::create(wsID, m_self.lock(), newDefaultWorkspaceName));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue