Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 203530 Details for
Bug 284200
grit-0.8.3.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for fixing iterator implementation in grit_main.cpp
grit_main.patch (text/plain), 1.12 KB, created by
Kim Nilsson
on 2009-09-08 19:22:41 UTC
(
hide
)
Description:
Patch for fixing iterator implementation in grit_main.cpp
Filename:
MIME Type:
Creator:
Kim Nilsson
Created:
2009-09-08 19:22:41 UTC
Size:
1.12 KB
patch
obsolete
>--- /var/tmp/portage/dev-util/grit-0.8.3/work/grit_src/srcgrit/grit_main.cpp 2008-12-07 17:24:08.000000000 +0100 >+++ /home/lolwut/grit_src/srcgrit/grit_main.cpp 2009-09-08 19:13:36.000000000 +0200 >@@ -49,7 +49,7 @@ > void grit_dump(GritRec *gr, FILE *fp); > void grit_dump_short(GritRec *gr, FILE *fp, const char *pre); > >-// typedef std::vector<char*> strvec; >+//typedef std::vector<char*> strvec; > > > // -------------------------------------------------------------------- >@@ -786,11 +786,20 @@ > if(!files.empty()) > { > // find first non-path >- for(ii=0; ii<argc; ii++) >- if(args[ii][0]=='-') >+ >+ // Date: 08/09/2009 >+ // User: Kim Nilsson ( Gentoo Linux amd64 ) >+ // Issue: Would not compile ( x86_64-pc-linux-gnu GCC 4.4.1) >+ // Fix: Changed for-loop to use an iterator so the insertion would not complain. >+ strvec::iterator iter; >+ for( iter = args.begin(); iter != args.end(); iter++ ) >+ { >+ if( ( *iter )[0] == '-' ) >+ { >+ args.insert( iter, files.begin(), files.end() ); > break; >- >- args.insert(&args[ii], files.begin(), files.end()); >+ } >+ } > } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 284200
:
203528
|
203529
| 203530 |
203532