diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/nextpnr.cc | 4 | ||||
-rw-r--r-- | common/nextpnr.h | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc index d2b887de..d177fe71 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -22,12 +22,12 @@ NEXTPNR_NAMESPACE_BEGIN std::unordered_map<std::string, int> *IdString::database_str_to_idx = nullptr; -std::vector<const std::string*> *IdString::database_idx_to_str = nullptr; +std::vector<const std::string *> *IdString::database_idx_to_str = nullptr; void IdString::initialize() { database_str_to_idx = new std::unordered_map<std::string, int>; - database_idx_to_str = new std::vector<const std::string*>; + database_idx_to_str = new std::vector<const std::string *>; initialize_add("", 0); initialize_chip(); } diff --git a/common/nextpnr.h b/common/nextpnr.h index 4288f7fc..d1314c27 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -46,7 +46,7 @@ struct IdString int index = 0; static std::unordered_map<std::string, int> *database_str_to_idx; - static std::vector<const std::string*> *database_idx_to_str; + static std::vector<const std::string *> *database_idx_to_str; static void initialize(); static void initialize_chip(); @@ -91,7 +91,10 @@ struct IdString operator const std::string &() const { return str(); } bool operator<(const IdString &other) const { return index < other.index; } - bool operator==(const IdString &other) const { return index == other.index; } + bool operator==(const IdString &other) const + { + return index == other.index; + } bool operator==(const std::string &s) const { return str() == s; } bool operator==(const char *s) const { return str() == s; } |