- Timestamp:
- Jul 3, 2026, 9:31:49 AM (2 days ago)
- Branches:
- master
- Parents:
- de851d0
- Location:
- src/InitTweak
- Files:
-
- 2 edited
-
FixGlobalInit.cpp (modified) (2 diffs)
-
FixInit.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixGlobalInit.cpp
rde851d0 r3859adb 10 10 // Created On : Mon May 04 15:14:56 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 2 16:39:52202613 // Update Count : 3 512 // Last Modified On : Fri Jul 3 08:41:54 2026 13 // Update Count : 37 14 14 // 15 15 … … 79 79 // Remove const qualifier from matching names, covering all forward declaration(s) and definition. 80 80 if ( constDeclsMnames.find( objDecl->mangleName ) != constDeclsMnames.end() ) { 81 ast::Type * fred = const_cast<ast::Type *>(mutDecl->get_type());82 fred->set_const( false );81 // SKULLDUGGERY: change value through const pointer. 82 const_cast<ast::Type *>(objDecl->get_type())->set_const( false ); 83 83 } // if 84 84 } -
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.