mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Deprecations: Add ignore deprecation warning macros
This commit is contained in:
parent
6b08ced201
commit
5e803ded5f
42 changed files with 114 additions and 148 deletions
|
|
@ -754,11 +754,9 @@ float Font::getDescentInPoints() const { return getDescent() * getHeightToP
|
|||
|
||||
int Font::getStringWidth (const String& text) const
|
||||
{
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
||||
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||
return (int) std::ceil (getStringWidthFloat (text));
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||
}
|
||||
|
||||
float Font::getStringWidthFloat (const String& text) const
|
||||
|
|
@ -941,11 +939,9 @@ public:
|
|||
|
||||
beginTest ("Old constructor from Typeface");
|
||||
{
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
||||
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||
Font f { face };
|
||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||
|
||||
expect (f.getTypefaceName() == face->getName());
|
||||
expect (f.getTypefaceStyle() == face->getStyle());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue