VirtualBox

Changeset 91384 in vbox


Ignore:
Timestamp:
Sep 27, 2021 10:13:56 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147063
Message:

Main/Wrapper.h: Better explanation for CheckComArgOutPointerValidThrow tr(). bugref:1909

File:
1 edited

Legend:

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

    r91312 r91384  
    3838        if (RT_LIKELY(RT_VALID_PTR(arg))) \
    3939        { /* likely */ }\
    40         else \
    41             throw setError(E_POINTER, \
    42                 /* Had to define VirtualBoxBase as context switcher for translation. \
    43                  * Otherwise, lupdate complains about unknown context and doesn't \
    44                  * include the string into translation file */ \
    45                 VirtualBoxBase::tr("Output argument %s points to invalid memory location (%p)"), \
    46                 #arg, (void *)(arg)); \
     40        /* Have use use VirtualBoxBase::tr here or lupdate won't be able to figure out the context, \
     41           as it is picking it up right here rather than in the places where the macro is actually used. */ \
     42        else throw setError(E_POINTER, VirtualBoxBase::tr("Output argument %s points to invalid memory location (%p)"), \
     43                            #arg, (void *)(arg)); \
    4744    } while (0)
    4845
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