VirtualBox

Changeset 52546 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Sep 1, 2014 8:58:51 AM (10 years ago)
Author:
vboxsync
Message:

VBox/Main: #1909: Independent QMTranslator implementation. Some fixes to Utf8Str (added number of characters to be copied when created from CBSTR without terminating zero), added swap method to RTCString for fast exchange between strings. Makefile for VBoxSVC updated in order to compile with QMTranslatorImpl.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r52312 r52546  
    514514    }
    515515
    516     Utf8Str(CBSTR that)
    517     {
    518         copyFrom(that);
     516    Utf8Str(CBSTR that, size_t a_cchSize = RTSTR_MAX)
     517    {
     518        copyFrom(that, a_cchSize);
    519519    }
    520520
     
    718718protected:
    719719
    720     void copyFrom(CBSTR a_pbstr);
     720    void copyFrom(CBSTR a_pbstr, size_t a_cchSize = RTSTR_MAX);
    721721    HRESULT copyFromEx(CBSTR a_pbstr);
    722722    HRESULT copyFromExNComRC(const char *a_pcszSrc, size_t a_offSrc, size_t a_cchSrc);
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