Issue 14869

Summary: return type mismatch - return by value assigned to reference
Product: General Reporter: khendricks
Component: chartAssignee: openoffice
Status: CLOSED FIXED QA Contact: issues@graphics <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 13400    

Description khendricks 2003-05-25 19:44:21 UTC
gcc 3.3 now provides error messages when there are return type 
mismatches such as when a method returns an object by value 
that is assigned to a reference which is a bug since the 
reference points to a temporary variable created to hold 
the return by value. 
 
An occurrence of this type occurred here see ... (fixme?) 
 
Please evaluate that line and fix the code in question 
to prevent the bug if needed. 
 
svx/source/options/optcolor.cxx 
@@ -946,7                       } 
             else 
             { 
(fixme?)         Color& rColor = pBox->GetSelectEntryColor(); 
                 aColorEntry.nColor = rColor.GetColor(); 
                                if(aScrollWindow.aWindows[i]) 
                                        aScrollWindow.aWindows[i]->SetBackground(Wallpaper(rColor));
Comment 1 Martin Hollmichel 2003-05-26 10:07:02 UTC
reassigned and set prio
Comment 2 andreas.martens 2003-05-28 08:47:56 UTC
AMA->GT: Please have a look at this.
Comment 3 gunnar.timm 2003-05-28 09:56:42 UTC
will do change
Comment 4 gunnar.timm 2003-05-28 13:18:48 UTC
fix is in cws cui01
Comment 5 frank.meies 2003-06-12 09:48:03 UTC
.
Comment 6 frank.meies 2003-06-12 09:48:27 UTC
.
Comment 7 openoffice 2003-06-12 09:50:26 UTC
.
Comment 8 openoffice 2003-06-12 09:51:12 UTC
.
Comment 9 openoffice 2003-07-23 13:46:48 UTC
.