summaryrefslogtreecommitdiff
path: root/solenv/gcc-wrappers/g++.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-05 20:33:16 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-05 23:03:52 +0200
commit1f90b8086fcad7ac033e76a96bf102db7c15e44f (patch)
treefc961a40b971a5cce79a4ce9ac9bcde61c3418b6 /solenv/gcc-wrappers/g++.cxx
parent3068ab9a2c9307cbea2efa2b6924ce427bb54466 (diff)
drop 'using namespace std' in s* + toolkit
Change-Id: Ibd0b983d46a5683df64b4de79cd444427705e9e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123118 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'solenv/gcc-wrappers/g++.cxx')
-rw-r--r--solenv/gcc-wrappers/g++.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/solenv/gcc-wrappers/g++.cxx b/solenv/gcc-wrappers/g++.cxx
index ae7dcb6be796..6b352e64c845 100644
--- a/solenv/gcc-wrappers/g++.cxx
+++ b/solenv/gcc-wrappers/g++.cxx
@@ -9,19 +9,17 @@
#include "wrapper.hxx"
-using namespace std;
-
int main(int argc, char* argv[])
{
- vector<string> rawargs(argv + 1, argv + argc);
+ std::vector<std::string> rawargs(argv + 1, argv + argc);
- string env_prefix; // defaults to REAL_
+ std::string env_prefix; // defaults to REAL_
bool verbose = false;
- string args = processccargs(rawargs, env_prefix, verbose);
+ std::string args = processccargs(rawargs, env_prefix, verbose);
- string command = getexe(env_prefix + "CXX");
- string flags = getexe(env_prefix + "CXX_FLAGS", true);
- args.insert(0, flags.empty() ? string() : flags + " ");
+ std::string command = getexe(env_prefix + "CXX");
+ std::string flags = getexe(env_prefix + "CXX_FLAGS", true);
+ args.insert(0, flags.empty() ? std::string() : flags + " ");
setupccenv();