VirtualBox

Changeset 4134 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 13, 2007 4:35:46 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23613
Message:

Main: Add Utf8StrFmtVA to resolve the dangerous ambiguity of ellipsis and va_list.

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

Legend:

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

    r4131 r4134  
    67436743    AssertReturnVoid (that);
    67446744
    6745     Utf8Str message = Utf8StrFmt (pszFormat, args);
     6745    Utf8Str message = Utf8StrFmtVA (pszFormat, args);
    67466746
    67476747    LogRel (("Console: VM runtime error: fatal=%RTbool, "
  • trunk/src/VBox/Main/ProgressImpl.cpp

    r4071 r4134  
    839839    va_list args;
    840840    va_start (args, aText);
    841     Bstr text = Utf8StrFmt (aText, args);
     841    Bstr text = Utf8StrFmtVA (aText, args);
    842842    va_end (args);
    843843   
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r4071 r4134  
    10641064    {
    10651065        return setErrorInternal (aResultCode, aIID, aComponent,
    1066                                  Utf8StrFmt (aText, aArgs),
     1066                                 Utf8StrFmtVA (aText, aArgs),
    10671067                                 false /* aPreserve */);
    10681068    }
     
    10731073    {
    10741074        return setErrorInternal (aResultCode, aIID, aComponent,
    1075                                  Utf8StrFmt (aText, aArgs),
     1075                                 Utf8StrFmtVA (aText, aArgs),
    10761076                                 true /* aPreserve */);
    10771077    }
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