Skip to content

Commit ab5acb9

Browse files
committed
archfpga: Clean-up 'using namespace'
1 parent 8c7eae9 commit ab5acb9

File tree

3 files changed

+171
-172
lines changed

3 files changed

+171
-172
lines changed

libs/libarchfpga/src/parse_switchblocks.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
#include "physical_types.h"
3333
#include "parse_switchblocks.h"
3434

35-
using namespace std;
36-
using namespace pugiutil;
35+
using pugiutil::ReqOpt;
3736

3837
/**** Function Declarations ****/
3938
/*---- Functions for Parsing Switchblocks from Architecture ----*/
@@ -85,7 +84,7 @@ void read_sb_wireconns(const t_arch_switch_inf* /*switches*/, int /*num_switches
8584
pugi::xml_node SubElem;
8685

8786
/* count the number of specified wire connections for this SB */
88-
num_wireconns = count_children(Node, "wireconn", loc_data, OPTIONAL);
87+
num_wireconns = count_children(Node, "wireconn", loc_data, ReqOpt::OPTIONAL);
8988
sb->wireconns.reserve(num_wireconns);
9089

9190
if (num_wireconns > 0) {
@@ -266,11 +265,11 @@ void read_sb_switchfuncs(pugi::xml_node Node, t_switchblock_inf* sb, const pugiu
266265
pugi::xml_node SubElem;
267266

268267
/* get the number of specified permutation functions */
269-
int num_funcs = count_children(Node, "func", loc_data, OPTIONAL);
268+
int num_funcs = count_children(Node, "func", loc_data, ReqOpt::OPTIONAL);
270269

271270
const char* func_type;
272271
const char* func_formula;
273-
vector<string>* func_ptr;
272+
std::vector<std::string>* func_ptr;
274273

275274
/* used to index into permutation map of switchblock */
276275
SB_Side_Connection conn;
@@ -319,7 +318,7 @@ void read_sb_switchfuncs(pugi::xml_node Node, t_switchblock_inf* sb, const pugiu
319318
func_ptr = &(sb->permutation_map[conn]);
320319

321320
/* Here we load the specified switch function(s) */
322-
func_ptr->push_back(string(func_formula));
321+
func_ptr->push_back(std::string(func_formula));
323322

324323
func_ptr = nullptr;
325324
/* get the next switchblock function */

0 commit comments

Comments
 (0)