Skip to content

Commit 7fa8341

Browse files
committed
odb: Added a const qualifier
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent 6b592fe commit 7fa8341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/odb/src/db/dbDatabase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,13 +706,13 @@ dbTech* dbDatabase::getTech()
706706

707707
void dbDatabase::setHierarchy(bool value)
708708
{
709-
_dbDatabase* db = (_dbDatabase*) this;
709+
_dbDatabase* db = reinterpret_cast<_dbDatabase*>(this);
710710
db->hierarchy_ = value;
711711
}
712712

713713
bool dbDatabase::hasHierarchy() const
714714
{
715-
_dbDatabase* db = (_dbDatabase*) this;
715+
const _dbDatabase* db = reinterpret_cast<const _dbDatabase*>(this);
716716
return db->hierarchy_;
717717
}
718718

0 commit comments

Comments
 (0)