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
|
|
@ -1697,11 +1697,9 @@ void CodeEditorComponent::setFont (const Font& newFont)
|
|||
{
|
||||
font = newFont;
|
||||
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
||||
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||
charWidth = font.getStringWidthFloat ("0");
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||
|
||||
lineHeight = roundToInt (font.getHeight());
|
||||
resized();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue