Skip to content

Commit

Permalink
fixed issue under Windows.
Browse files Browse the repository at this point in the history
svn path=/trunk/yarp2/; revision=4275
  • Loading branch information
YARP Developers committed Oct 28, 2006
1 parent 73425ea commit cbe7e90
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/libYARP_OS/include/yarp/BufferedConnectionWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ class yarp::BufferedConnectionWriter : public ConnectionWriter, public SizedWrit

void clear() {
target = &lst;
for (unsigned int i=0; i<lst.size(); i++) {
unsigned int i;
for (i=0; i<lst.size(); i++) {
delete lst[i];
}
lst.clear();
for (unsigned int i=0; i<header.size(); i++) {
for (i=0; i<header.size(); i++) {
delete header[i];
}
header.clear();
Expand Down Expand Up @@ -114,11 +115,12 @@ class yarp::BufferedConnectionWriter : public ConnectionWriter, public SizedWrit
}

void write(OutputStream& os) {
for (unsigned int i=0; i<header.size(); i++) {
unsigned int i;
for (i=0; i<header.size(); i++) {
ManagedBytes& b = *(header[i]);
os.write(b.bytes());
}
for (unsigned int i=0; i<lst.size(); i++) {
for (i=0; i<lst.size(); i++) {
ManagedBytes& b = *(lst[i]);
os.write(b.bytes());
}
Expand Down

0 comments on commit cbe7e90

Please sign in to comment.