VirtualBox

Changeset 73824 in vbox for trunk/src


Ignore:
Timestamp:
Aug 22, 2018 12:31:25 PM (6 years ago)
Author:
vboxsync
Message:

Main/Progress: eliminate useless copying of Utf8Str for method calls

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r73743 r73824  
    5656#endif
    5757                  IUnknown *aInitiator,
    58                   Utf8Str aDescription,
     58                  const Utf8Str &aDescription,
    5959                  BOOL aCancelable)
    6060    {
     
    8888#endif
    8989                  IUnknown *aInitiator,
    90                   Utf8Str aDescription, BOOL aCancelable,
     90                  const Utf8Str &aDescription, BOOL aCancelable,
    9191                  ULONG cOperations,
    92                   Utf8Str aFirstOperationDescription)
     92                  const Utf8Str &aFirstOperationDescription)
    9393    {
    9494        return init(
     
    110110#endif
    111111                  IUnknown *aInitiator,
    112                   Utf8Str aDescription,
     112                  const Utf8Str &aDescription,
    113113                  BOOL aCancelable,
    114114                  ULONG cOperations,
    115115                  ULONG ulTotalOperationsWeight,
    116                   Utf8Str aFirstOperationDescription,
     116                  const Utf8Str &aFirstOperationDescription,
    117117                  ULONG ulFirstOperationWeight);
    118118
    119119    HRESULT init(BOOL aCancelable,
    120120                 ULONG aOperationCount,
    121                  Utf8Str aOperationDescription);
     121                 const Utf8Str &aOperationDescription);
    122122
    123123    void uninit();
  • trunk/src/VBox/Main/src-all/ProgressImpl.cpp

    r73743 r73824  
    148148#endif
    149149                       IUnknown *aInitiator,
    150                        Utf8Str aDescription,
     150                       const Utf8Str &aDescription,
    151151                       BOOL aCancelable,
    152152                       ULONG cOperations,
    153153                       ULONG ulTotalOperationsWeight,
    154                        Utf8Str aFirstOperationDescription,
     154                       const Utf8Str &aFirstOperationDescription,
    155155                       ULONG ulFirstOperationWeight)
    156156{
     
    261261HRESULT Progress::init(BOOL aCancelable,
    262262                       ULONG aOperationCount,
    263                        Utf8Str aOperationDescription)
     263                       const Utf8Str &aOperationDescription)
    264264{
    265265    LogFlowThisFunc(("aOperationDescription=\"%s\"\n", aOperationDescription.c_str()));
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