summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorCollabora <l.lunak@collabora.com>2021-07-15 12:18:49 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-07-23 10:32:08 +0200
commit2d04d7cc559445d8c1559af6af6d981d9f682db4 (patch)
tree8f9ed81590800f772f162f93473c654f4eefb468 /shell
parenta470d97f2ddcb3607ae9d1df871a59f04d823564 (diff)
do not use "using namespace std" in headers
It's a bad style, doing that in headers can affect many source files (especially with PCH used). Change-Id: Ic9091a1d018e74606c9fa95df71a55faaa93d4ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119011 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/qa/zip/testzipimpl.cxx4
-rw-r--r--shell/qa/zip/testzipimpl.hxx4
2 files changed, 3 insertions, 5 deletions
diff --git a/shell/qa/zip/testzipimpl.cxx b/shell/qa/zip/testzipimpl.cxx
index e669b6a8b40d..e39408f98496 100644
--- a/shell/qa/zip/testzipimpl.cxx
+++ b/shell/qa/zip/testzipimpl.cxx
@@ -48,8 +48,8 @@ TestZipImpl::~TestZipImpl() {}
bool TestZipImpl::test_directory()
{
ZipFile::DirectoryPtr_t contents = zipFile.GetDirectory();
- vector<string>& stringVector = *contents;
- sort(stringVector.begin(), stringVector.end());
+ std::vector<std::string>& stringVector = *contents;
+ std::sort(stringVector.begin(), stringVector.end());
return expectedContents == stringVector;
}
diff --git a/shell/qa/zip/testzipimpl.hxx b/shell/qa/zip/testzipimpl.hxx
index ae1ff8cedd72..cdea8b209549 100644
--- a/shell/qa/zip/testzipimpl.hxx
+++ b/shell/qa/zip/testzipimpl.hxx
@@ -26,13 +26,11 @@
#include <algorithm>
#include <sal/types.h>
-using namespace std;
-
class TestZipImpl
{
private:
ZipFile zipFile;
- vector<string> expectedContents;
+ std::vector<std::string> expectedContents;
public:
explicit TestZipImpl(StreamInterface* stream);