Issue 14869 - return type mismatch - return by value assigned to reference
Summary: return type mismatch - return by value assigned to reference
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: openoffice
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks: 13400
  Show dependency tree
 
Reported: 2003-05-25 19:44 UTC by khendricks
Modified: 2013-02-24 21:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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
.