VirtualBox

Changeset 57005 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 19, 2015 1:03:20 AM (9 years ago)
Author:
vboxsync
Message:

Annotated format strings in ministring.h and com/strings.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/ministring.h

    r56291 r57005  
    172172     * @remarks Not part of std::string.
    173173     */
    174     RTCString(const char *a_pszFormat, va_list a_va)
     174    RTCString(const char *a_pszFormat, va_list a_va) RT_IPRT_FORMAT_ATTR(1, 0)
    175175        : m_psz(NULL),
    176176          m_cch(0),
     
    341341     * @returns Reference to the object.
    342342     */
    343     RTCString &printf(const char *pszFormat, ...);
     343    RTCString &printf(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2);
    344344
    345345    /**
     
    355355     * @returns Reference to the object.
    356356     */
    357     RTCString &printfV(const char *pszFormat, va_list va);
     357    RTCString &printfV(const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(1, 0);
    358358
    359359    /**
     
    10601060     *                          the format string.
    10611061     */
    1062     explicit RTCStringFmt(const char *a_pszFormat, ...)
     1062    explicit RTCStringFmt(const char *a_pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2)
    10631063    {
    10641064        va_list va;
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