Skip to content

Commit 7319402

Browse files
authored
Merge pull request The-OpenROAD-Project#8719 from The-OpenROAD-Project-staging/odb-3dblox-types
odb: fix struct vs class and add some const
2 parents eebcc18 + cc1917c commit 7319402

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/odb/src/3dblox/bmapParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ namespace utl {
1010
class Logger;
1111
}
1212
namespace odb {
13-
class BumpMapData;
14-
class BumpMapEntry;
13+
struct BumpMapData;
14+
struct BumpMapEntry;
1515

1616
class BmapParser
1717
{

src/odb/src/3dblox/objects.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ struct DbxData
124124

125125
struct BumpMapEntry
126126
{
127-
std::string bump_inst_name;
128-
std::string bump_cell_type;
129-
double x{0.0};
130-
double y{0.0};
131-
std::string port_name;
132-
std::string net_name;
127+
const std::string bump_inst_name;
128+
const std::string bump_cell_type;
129+
const double x{0.0};
130+
const double y{0.0};
131+
const std::string port_name;
132+
const std::string net_name;
133133

134134
BumpMapEntry() = default;
135135
BumpMapEntry(const std::string& inst_name,
@@ -153,4 +153,4 @@ struct BumpMapData
153153
std::vector<BumpMapEntry> entries;
154154
};
155155

156-
} // namespace odb
156+
} // namespace odb

0 commit comments

Comments
 (0)