Issue 93212

Summary: Avoid slicing during construction of SdrPage
Product: Draw Reporter: groucho266
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOO300m3   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description groucho266 2008-08-28 14:50:04 UTC
The SdrPage copy constructor contains the line
    *this = rSrcPage;
Like in issue 93186 this leads to slicing and to subtle errors.

The copy constructor SdrObjList also contains an assignment to *this.

Avoid assignment to *this.

One way to do this is the use of a proper Clone() method.
For details on the general problem see for instance item 54. Avoid slicing... in
C++ Coding Standards by Sutter and Alexandrescu.
Comment 1 groucho266 2008-12-09 14:27:05 UTC
Setting target to OOo 3.2 due to time constraints.
Comment 2 groucho266 2009-09-25 09:50:18 UTC
Setting target to OOo 3.3
Comment 3 groucho266 2010-07-08 16:58:52 UTC
Changing target.
Comment 4 Marcus 2017-05-20 10:47:49 UTC
Reset assigne to the default "issues@openoffice.apache.org".