To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=58973 Issue #:|58973 Summary:|gcc:4-1: strange usage of String classes Component:|Word processor Version:|680m142 Platform:|PC URL:| OS/Version:|Linux Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|PATCH Priority:|P3 Subcomponent:|code Assigned to:|mru Reported by:|pmladek
------- Additional comments from [EMAIL PROTECTED] Tue Dec 6 09:21:44 -0800 2005 ------- I got this error with gcc-4.1-pre: --- cut --- /usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/sw/source/core/ swg/SwXMLTextBlocks1.cxx: In member function ‘virtual ULONG SwXMLTextBlocks::GetDoc(USHORT)’: /usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/sw/source/core/ swg/SwXMLTextBlocks1.cxx:142: error: no match for ‘operator+’ in ‘aFolderName + String::CreateFromAscii(const sal_Char*)()’ /usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solver/680/unxlngi6.pro/inc/tools/fract.hxx:135: note: candidates are: Fraction operator+(const Fraction&, const Fraction&) /usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solver/680/unxlngi6.pro/inc/tools/gen.hxx:660: note: Rectangle operator+(const Rectangle&, const Point&) /usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solver/680/unxlngi6.pro/inc/tools/gen.hxx:202: note: Point operator+(const Point&, const Point&) --- cut --- It seems that the operator + is not defined for the class String. There was an ugly conditional hack for MS Win that one string was retyped to (OUString). I thing that it is a waste of time to convert the strings to OUString, which provides the operator +, and then convert them back to String. I rather used the oparator += which is provides by the class String as well. I also removed the obsolete hack for MS Win. I wonder how it could work with older gcc. I'll attach the patch. I could commit it to the CWS gcc41 if you agree. --------------------------------------------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]