- Timestamp:
- Oct 26, 2021 8:35:27 AM (3 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/QMTranslator.h
r91720 r92068 44 44 */ 45 45 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; 47 47 48 48 /** -
trunk/src/VBox/Main/include/VBoxNls.h
r91718 r92068 34 34 struct ctx \ 35 35 {\ 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) \ 37 37 { \ 38 38 return VirtualBoxTranslator::translate(NULL, #ctx, pszSource, pszComment, aNum); \ … … 43 43 struct ctx \ 44 44 {\ 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) \ 46 46 { \ 47 47 NOREF(pszComment); \ -
trunk/src/VBox/Main/include/VirtualBoxBase.h
r91718 r92068 579 579 static inline const char *tr(const char *aSourceText, \ 580 580 const char *aComment = NULL, \ 581 const size_t aNum = (~(size_t)0)) \581 const size_t aNum = ~(size_t)0) \ 582 582 { \ 583 583 return VirtualBoxTranslator::translate(NULL, #cls, aSourceText, aComment, aNum); \ … … 587 587 static inline const char *tr(const char *aSourceText, \ 588 588 const char *aComment = NULL, \ 589 const size_t aNum = (~(size_t)0)) \589 const size_t aNum = ~(size_t)0) \ 590 590 { \ 591 591 RT_NOREF(aComment, aNum); \ -
trunk/src/VBox/Main/include/VirtualBoxTranslator.h
r91718 r92068 95 95 const char *aSourceText, 96 96 const char *aComment = NULL, 97 const size_t aNum = (~(size_t)0)) RT_NOEXCEPT;97 const size_t aNum = ~(size_t)0) RT_NOEXCEPT; 98 98 99 99 /** … … 144 144 const char *aSourceText, 145 145 const char *aComment = NULL, 146 const size_t aNum = (~(size_t)0)) RT_NOEXCEPT;146 const size_t aNum = ~(size_t)0) RT_NOEXCEPT; 147 147 }; 148 148 -
trunk/src/VBox/Main/src-all/QMTranslatorImpl.cpp
r91731 r92068 347 347 size_t plural(size_t aNum) const 348 348 { 349 if (aNum == (~(size_t)0)|| m_pluralRules.empty())349 if (aNum == ~(size_t)0 || m_pluralRules.empty()) 350 350 return 0; 351 351 … … 612 612 613 613 const 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_NOEXCEPT614 const char *pszDisamb /*= NULL*/, const size_t aNum /*= ~(size_t)0*/) const RT_NOEXCEPT 615 615 616 616 {
Note:
See TracChangeset
for help on using the changeset viewer.