Apache OpenOffice (AOO) Bugzilla – Issue 14782
IRIX Port: Error on static_cast
Last modified: 2003-11-23 11:53:52 UTC
While trying to make the following static cast in sal/rtl/source/bootstrap.cxx:597 found = static_cast< Bootstrap_Impl const * >( handle )->getValue(pName, ppValue, pDefault ); I get the following error massage: static_cast from `void *' to `const Bootstrap_Impl *' I tried using a C style cast but with no luck. The following patch will take care of the problem...
Created attachment 6347 [details] sal/rtl/source/bootstrap.cxx
adding keyword, and accepting
Hi George, I thought there was already some discussion about this on the dev or dev@porting mailing list. My understanding is that you can do the cast as a combination of a static_cast and a const_cast. If so (and I am no C++ guy) perhaps trying that might be better than just dropping the "const" for everyone. So please ask about this on the dev or dev@porting list and see what people say. Thanks, Kevin
re-assigning to Nick Blievers
retarget.
Accepting..
mh->dbo: please review.
reviewed.
verified
reassigned.
fixed.
Closing.