VirtualBox

Changeset 23223 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 22, 2009 3:50:03 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52692
Message:

API: big medium handling change and lots of assorted other cleanups and fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/ministring_cpp.h

    r22173 r23223  
    212212    }
    213213
    214     /**
    215      * Appends a copy of @a that to "this".
    216      * @param that
    217      */
    218     MiniString& append(const MiniString &that)
    219     {
    220         size_t cbThis = length();
    221         size_t cbThat = that.length();
    222 
    223         if (cbThat)
    224         {
    225             size_t cbBoth = cbThis + cbThat + 1;
    226 
    227             reserve(cbBoth);
    228                 // calls realloc(cbBoth) and sets m_cbAllocated
    229 
    230             memcpy(m_psz + cbThis, that.m_psz, cbThat);
    231             m_psz[cbThis + cbThat] = '\0';
    232             m_cbLength = cbBoth - 1;
    233         }
    234         return *this;
    235     }
     214    MiniString& append(const MiniString &that);
     215    MiniString& append(char c);
    236216
    237217    /**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette