Opened 3 years ago

Last modified 2 years ago

#7170 new defect

PRINCE: Casting away const-ness without an explicit const_cast

Reported by: DrMcCoy Owned by:
Priority: normal Component: Engine: Prince
Keywords: Cc:


GCC's -Wcast-qual complains about the casting away of cost-ness with a C-style cast in

  • engines/prince/prince.cpp:2587
  • engines/prince/script.cpp:1019
  • engines/prince/script.cpp:1835

Ticket imported from: bugs/7170.

Change History (2)

comment:1 by wjp, 3 years ago

These indicate actual bugs, by the way. Results from c_str() calls are stored persistently, which is a very bad idea.

comment:2 by csnover, 2 years ago

Component: Engine: Prince
Priority: lownormal
Note: See TracTickets for help on using tickets.