VirtualBox

Changeset 33621 in vbox for trunk/src


Ignore:
Timestamp:
Oct 29, 2010 4:15:40 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67232
Message:

Utf8Str: Use printfV in Utf8StrFmt, eliminated Utf8StrFmtVA by replacing it by a Utf8Str(str,va) constructor.

Location:
trunk/src/VBox/Main
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r33540 r33621  
    819819    va_list args;
    820820    va_start(args, aWarning);
    821     Utf8StrFmtVA str(aWarning, args);
     821    Utf8Str str(aWarning, args);
    822822    va_end(args);
    823823    m->llWarnings.push_back(str);
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r33590 r33621  
    30133013                                  getStaticClassIID(),
    30143014                                  getStaticComponentName(),
    3015                                   Utf8StrFmtVA(pcsz, args),
     3015                                  Utf8Str(pcsz, args),
    30163016                                  false /* aWarning */,
    30173017                                  true /* aLogIt */);
     
    70397039    AssertReturnVoid(that);
    70407040
    7041     Utf8Str message = Utf8StrFmtVA(pszFormat, va);
     7041    Utf8Str message(pszFormat, va);
    70427042
    70437043    LogRel(("Console: VM runtime error: fatal=%RTbool, errorID=%s message=\"%s\"\n",
  • trunk/src/VBox/Main/ProgressImpl.cpp

    r33540 r33621  
    11611161                                  va_list va)
    11621162{
    1163     Utf8Str text = Utf8StrFmtVA(aText, va);
     1163    Utf8Str text(aText, va);
    11641164
    11651165    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/VirtualBoxBase.cpp

    r33540 r33621  
    462462                                  this->getClassIID(),
    463463                                  this->getComponentName(),
    464                                   Utf8StrFmtVA(pcsz, args),
     464                                  Utf8Str(pcsz, args),
    465465                                  false /* aWarning */,
    466466                                  true /* aLogIt */);
     
    482482                                  this->getClassIID(),
    483483                                  this->getComponentName(),
    484                                   Utf8StrFmtVA(pcsz, args),
     484                                  Utf8Str(pcsz, args),
    485485                                  true /* aWarning */,
    486486                                  true /* aLogIt */);
     
    502502                                  this->getClassIID(),
    503503                                  this->getComponentName(),
    504                                   Utf8StrFmtVA(pcsz, args),
     504                                  Utf8Str(pcsz, args),
    505505                                  false /* aWarning */,
    506506                                  false /* aLogIt */);
  • trunk/src/VBox/Main/glue/string.cpp

    r33563 r33621  
    139139}
    140140
    141 void Utf8StrFmt::init(const char *format, va_list args)
    142 {
    143     if (!format || !*format)
    144     {
    145         m_cch = 0;
    146         m_cbAllocated = 0;
    147         m_psz = NULL;
    148     }
    149     else
    150     {
    151         m_cch = RTStrAPrintfV(&m_psz, format, args);
    152         m_cbAllocated = m_cch + 1;
    153     }
    154 }
    155 
    156141} /* namespace com */
  • trunk/src/VBox/Main/xml/Settings.cpp

    r33612 r33621  
    189189        va_list args;
    190190        va_start(args, pcszFormat);
    191         Utf8StrFmtVA strWhat(pcszFormat, args);
     191        Utf8Str strWhat(pcszFormat, args);
    192192        va_end(args);
    193193
Note: See TracChangeset for help on using the changeset viewer.

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