Summary: | Compile error on solaris 2.6 - codegenerator.cpp:685: error: `index' undeclared | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Steve Evans <stevee> |
Component: | general | Assignee: | Oliver Kellogg <okellogg> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Steve Evans
2005-02-18 13:06:21 UTC
Adding #include <strings.h> fixes it Whoa! This one's on me. Thanks for noticing. CVS commit by okellogg: BUG:99697 - formatDoc(): Fix declaration of index. M +1 -1 ChangeLog 1.66 M +2 -1 umbrello/codegenerator.cpp 1.65 --- kdesdk/umbrello/ChangeLog #1.65:1.66 @@ -28,5 +28,5 @@ 92781 92995 93122 93219 93297 93298 93501 93535 93696 94173 94728 94795 94883 95082 95247 95252 95722 95924 95951 95954 -96216 96221 96964 97155 97182 97697 97887 97984 +96216 96221 96964 97155 97182 97697 97887 97984 98899 99697 Version 1.3 --- kdesdk/umbrello/umbrello/codegenerator.cpp #1.64:1.65 @@ -678,6 +678,7 @@ QString CodeGenerator::formatDoc(const Q continue; } + int index; do { - const int index = comment.findRev(" ", lineWidth + 1); + index = comment.findRev(" ", lineWidth + 1); output += linePrefix + input.left(index) + endLine; // add line input.remove(0, index + 1); //and remove processed string, including |