Changeset 192e299 in thomson for elec/CrO2/software/k5.cpp


Ignore:
Timestamp:
Feb 3, 2012, 7:37:06 PM (12 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
c2a9854
Parents:
f9263dd
Message:

Cleanup.

git-svn-id: svn://localhost/thomson@15 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • elec/CrO2/software/k5.cpp

    rf9263dd r192e299  
    2323        data = new uint8_t[length];
    2424        memcpy(data, other.data, length);
     25}
     26
     27const K5::Block& K5::Block::operator=(const Block& other)
     28{
     29        delete[] data;
     30                // May not be null ?
     31
     32        length = other.length;
     33        type = other.type;
     34        data = new uint8_t[length];
     35        memcpy(data, other.data, length);
     36
     37        return *this;
    2538}
    2639
Note: See TracChangeset for help on using the changeset viewer.