VirtualBox

Changeset 92068 in vbox for trunk/src


Ignore:
Timestamp:
Oct 26, 2021 8:35:27 AM (3 years ago)
Author:
vboxsync
Message:

Main: Removed unnecessary parentheses. bugref:1909

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

Legend:

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

    r91720 r92068  
    4444     */
    4545    const char *translate(const char *pszContext, const char *pszSource, const char **ppszSafeSource,
    46                           const char *pszDisamb = NULL, const size_t aNum = (~(size_t)0)) const RT_NOEXCEPT;
     46                          const char *pszDisamb = NULL, const size_t aNum = ~(size_t)0) const RT_NOEXCEPT;
    4747
    4848    /**
  • trunk/src/VBox/Main/include/VBoxNls.h

    r91718 r92068  
    3434struct ctx \
    3535{\
    36    static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = (~(size_t)0)) \
     36   static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = ~(size_t)0) \
    3737   { \
    3838       return VirtualBoxTranslator::translate(NULL, #ctx, pszSource, pszComment, aNum); \
     
    4343struct ctx \
    4444{\
    45    static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = (~(size_t)0)) \
     45   static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = ~(size_t)0) \
    4646   { \
    4747       NOREF(pszComment); \
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r91718 r92068  
    579579    static inline const char *tr(const char  *aSourceText, \
    580580                                 const char  *aComment = NULL, \
    581                                  const size_t aNum = (~(size_t)0)) \
     581                                 const size_t aNum = ~(size_t)0) \
    582582    { \
    583583        return VirtualBoxTranslator::translate(NULL, #cls, aSourceText, aComment, aNum); \
     
    587587    static inline const char *tr(const char *aSourceText, \
    588588                                 const char *aComment = NULL, \
    589                                  const size_t aNum = (~(size_t)0)) \
     589                                 const size_t aNum = ~(size_t)0) \
    590590    { \
    591591        RT_NOREF(aComment, aNum); \
  • trunk/src/VBox/Main/include/VirtualBoxTranslator.h

    r91718 r92068  
    9595                                 const char  *aSourceText,
    9696                                 const char  *aComment = NULL,
    97                                  const size_t aNum = (~(size_t)0)) RT_NOEXCEPT;
     97                                 const size_t aNum = ~(size_t)0) RT_NOEXCEPT;
    9898
    9999    /**
     
    144144                            const char   *aSourceText,
    145145                            const char   *aComment = NULL,
    146                             const size_t aNum = (~(size_t)0)) RT_NOEXCEPT;
     146                            const size_t aNum = ~(size_t)0) RT_NOEXCEPT;
    147147};
    148148
  • trunk/src/VBox/Main/src-all/QMTranslatorImpl.cpp

    r91731 r92068  
    347347    size_t plural(size_t aNum) const
    348348    {
    349         if (aNum == (~(size_t)0) || m_pluralRules.empty())
     349        if (aNum == ~(size_t)0 || m_pluralRules.empty())
    350350            return 0;
    351351
     
    612612
    613613const char *QMTranslator::translate(const char *pszContext, const char *pszSource, const char **ppszSafeSource,
    614                                     const char *pszDisamb /*== NULL*/, const size_t aNum /* = (~(size_t)0) */) const RT_NOEXCEPT
     614                                    const char *pszDisamb /*= NULL*/, const size_t aNum /*= ~(size_t)0*/) const RT_NOEXCEPT
    615615
    616616{
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