Andreas Schlüns wrote: > Hello Yan Wu, > >> Hi Andreas, >> >> When redesigning svtools\source\config\useroptions.cxx, >> I made like below changes: >> >> String SvtUserOptions_Impl::GetFirstName() const >> { >> ::rtl::OUString sFirstName; >> try >> { >> m_xData->getPropertyValue(s_sgivenname) >>= sFirstName; >> } >> catch ( const css::uno::Exception& ex) >> { >> LogHelper::logIt(ex); >> } >> return String(sFirstName); >> } >> >> The OOo still will crash when opening Menu:Tools->Options. The crash >> point is aFirstName.SetText( aUserOpt.GetFirstName() ) in >> SvxGeneralTabPage::SetAddress_Impl(); >> >> BTW, "const String& SvtUserOptions::GetFirstName() const" isnt made any >> changes. Does this method need changes too? > > Yes - of course this method needs to be redesigned too.
While we are at it (and need to recompile anyway): would it make sense to get rid of the tools String here? Why converting the available rtl::OUString to a tools String, let the client decide whether this is needed at all. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]