Changeset 3859adb for src/InitTweak/FixInit.cpp
- Timestamp:
- Jul 3, 2026, 9:31:49 AM (3 days ago)
- Branches:
- master
- Parents:
- de851d0
- File:
-
- 1 edited
-
src/InitTweak/FixInit.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cpp
rde851d0 r3859adb 818 818 // Remove const qualifier from definition and there can be no forward declarations. 819 819 if ( objDecl->type->is_const() ) { 820 ast::Type * fred = const_cast<ast::Type *>(objDecl->get_type());821 fred->set_const( false );820 // SKULLDUGGERY: change value through const pointer. 821 const_cast<ast::Type *>(objDecl->get_type())->set_const( false ); 822 822 } 823 823 // originally wanted to take advantage of gcc nested functions, but
Note:
See TracChangeset
for help on using the changeset viewer.