VirtualBox

Changeset 72943 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jul 7, 2018 3:24:14 PM (6 years ago)
Author:
vboxsync
Message:

GluePrintErrorContext: Don't make an unnecessary copy of the filename part of pcszSourceFile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/errorprint.cpp

    r69500 r72943  
    8484    // pcszSourceFile comes from __FILE__ macro, which always contains the full path,
    8585    // which we don't want to see printed:
    86     Utf8Str strFilename(RTPathFilename(pcszSourceFile));
    8786    Utf8Str str = Utf8StrFmt("Context: \"%s\" at line %d of file %s\n",
    8887                             pcszContext,
    8988                             ulLine,
    90                              strFilename.c_str());
     89                             RTPathFilename(pcszSourceFile));
    9190    // print and log
    9291    RTMsgError("%s", str.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