To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=108582 Issue #|108582 Summary|sw: strict aliasing and const in dbui Component|Word processor Version|DEV300m70 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|PATCH Priority|P3 Subcomponent|code Assigned to|os Reported by|cmc
------- Additional comments from c...@openoffice.org Fri Jan 22 15:35:26 +0000 2010 ------- sw/source/ui/dbui/dbinsdlg.cxx const SwInsDBColumn& rGet ... rNFmtr.PutEntry( (String&)rGet.sUsrNumFmt sUsrNumFmt is a rtl::OUString, PutEntry takes a String&, so this strips the const and casts to an unrelated type. Which works at the moment because their internal layout is the same. Attached patch keeps the same logic (assuming that we intend to allow sUsrNumFmt to be modified for PutEntry if it has to) and avoid the cast to an unrelated type. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org For additional commands, e-mail: issues-h...@sw.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org