include/comphelper/parallelsort.hxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5b53dd0514c25f907c80d523b078387db71f859b
Author:     offtkp <parisop...@gmail.com>
AuthorDate: Mon Mar 28 15:52:29 2022 +0300
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Tue Mar 29 13:03:34 2022 +0200

    removed pointless using namespace std
    
    Change-Id: I117aa1ea74b636ef06f7eedce8f2e12f9c4226b2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132213
    Tested-by: Jenkins
    Reviewed-by: Hossein <hoss...@libreoffice.org>

diff --git a/include/comphelper/parallelsort.hxx 
b/include/comphelper/parallelsort.hxx
index 94d86e0d119b..57eccc4770e3 100644
--- a/include/comphelper/parallelsort.hxx
+++ b/include/comphelper/parallelsort.hxx
@@ -147,8 +147,7 @@ template <class RandItr> struct Sampler
         for (size_t nIdx = 0; nIdx < nSamples; ++nIdx)
         {
             size_t nSel = aGenerator() % nLen--;
-            using namespace std;
-            swap(*(aBegin + nSel), *(aBegin + nLen));
+            std::swap(*(aBegin + nSel), *(aBegin + nLen));
             pSamples[nIdx] = *(aBegin + nLen);
         }
     }

Reply via email to