Issue 106481 - sw: docxattributeoutput.cxx: 2 * bad call to erase
Summary: sw: docxattributeoutput.cxx: 2 * bad call to erase
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: DEV300m63
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Blocks: 106602
  Show dependency tree
Reported: 2009-10-30 12:20 UTC by dcb314
Modified: 2017-05-20 11:17 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this issue.
Description dcb314 2009-10-30 12:20:44 UTC
For source code file sw/source/filter/ww8/docxattributeoutput.cxx,
function DocxAttributeOutput::EndRun, around line 351 is the code

                m_Fields.erase( pIt );

This looks like a bad call to erase to me. Suggest new code

                pIt = m_Fields.erase( pIt );

The same thing happens in the same file, around line 383. 
The source code is

               m_Fields.erase( pIt );
Comment 1 caolanm 2009-10-30 12:26:32 UTC
cmc->hbrinkm: this is your code I think. Its not compiled at the moment, but I
imagine that this is future work that'll get enabled at some stage
Comment 2 openoffice 2009-11-02 09:05:21 UTC
confirmed, set target
Comment 3 Martin Hollmichel 2011-03-16 11:42:55 UTC
set target 3.x since not relevant for 3.4 release.
Comment 4 Marcus 2017-05-20 11:17:53 UTC
Reset assigne to the default "".