┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphintabpage.cpp
diff options
context:
space:
mode:
authorWillyanto Willyanto <[email protected]>2023-01-16 23:44:25 +0700
committerWillyanto Willyanto <[email protected]>2023-01-16 23:45:56 +0700
commit0a0f0c76dbd6d07c1d1287e93e3f4ce947aa7e7a (patch)
tree3cb795d3456be5970e27405f16a8bbbb06454056 /src/dolphintabpage.cpp
parentbf0260642b1d7fab8c206de4dfae766d25d6564d (diff)
Replace qswap with std::swap
Fixes obsolete function 'qSwap' called. It is recommended to use 'std::swap' instead. (CWE-477)
Diffstat (limited to 'src/dolphintabpage.cpp')
-rw-r--r--src/dolphintabpage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphintabpage.cpp b/src/dolphintabpage.cpp
index 52545e349..f6d288e7d 100644
--- a/src/dolphintabpage.cpp
+++ b/src/dolphintabpage.cpp
@@ -120,7 +120,7 @@ void DolphinTabPage::setSplitViewEnabled(bool enabled, Animated animated, const
// If the primary view is active, we have to swap the pointers
// because the secondary view will be the new primary view.
- qSwap(m_primaryViewContainer, m_secondaryViewContainer);
+ std::swap(m_primaryViewContainer, m_secondaryViewContainer);
m_primaryViewActive = false;
}
} else {
@@ -132,7 +132,7 @@ void DolphinTabPage::setSplitViewEnabled(bool enabled, Animated animated, const
// If the secondary view is active, we have to swap the pointers
// because the secondary view will be the new primary view.
- qSwap(m_primaryViewContainer, m_secondaryViewContainer);
+ std::swap(m_primaryViewContainer, m_secondaryViewContainer);
m_primaryViewActive = true;
}
}