From 1f90b8086fcad7ac033e76a96bf102db7c15e44f Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 5 Oct 2021 20:33:16 +0200 Subject: 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 --- solenv/gcc-wrappers/g++.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'solenv/gcc-wrappers/g++.cxx') 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 rawargs(argv + 1, argv + argc); + std::vector 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(); -- cgit