Issue 41790 - testshl2 has some issues with stl code
Summary: testshl2 has some issues with stl code
Status: CLOSED DUPLICATE of issue 41791
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P4 Trivial
Target Milestone: ---
Assignee: lars.langhans
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-01 11:34 UTC by lars.langhans
Modified: 2013-02-24 21:09 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 lars.langhans 2005-02-01 11:34:21 UTC
a vector iterator isn't a pointer in every STL version and in empty vector's not
NULL every time.

This is the fix.

diff -r1.4 getopt.cxx
556c556
<       if ( nameVec.end() ) {
---

>>       if ( !nameVec.empty() ) {

560c560
<       if ( paramVec.end() ) {
---

>>       if ( !paramVec.empty() ) {

860c860
<               if (m_opthash[opt].begin())
---

>>               if (!m_opthash[opt].empty())
Comment 1 lars.langhans 2005-02-25 11:19:12 UTC
There was a bug in creation of this bug, so please use #i41791# instead


*** This issue has been marked as a duplicate of 41791 ***
Comment 2 lars.langhans 2005-03-31 09:37:24 UTC
closed due to double.