mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Build: Add -Wdeprecated to recommended flags and fix new warnings
This commit is contained in:
parent
fb1f94767d
commit
1d1d743b9f
23 changed files with 19 additions and 76 deletions
|
|
@ -44,10 +44,6 @@ namespace
|
|||
}
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
LowLevelGraphicsContext::LowLevelGraphicsContext() {}
|
||||
LowLevelGraphicsContext::~LowLevelGraphicsContext() {}
|
||||
|
||||
//==============================================================================
|
||||
Graphics::Graphics (const Image& imageToDrawOnto)
|
||||
: contextHolder (imageToDrawOnto.createLowLevelContext()),
|
||||
|
|
@ -61,10 +57,6 @@ Graphics::Graphics (LowLevelGraphicsContext& internalContext) noexcept
|
|||
{
|
||||
}
|
||||
|
||||
Graphics::~Graphics()
|
||||
{
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void Graphics::resetToDefaultState()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,9 +56,6 @@ public:
|
|||
*/
|
||||
explicit Graphics (const Image& imageToDrawOnto);
|
||||
|
||||
/** Destructor. */
|
||||
~Graphics();
|
||||
|
||||
//==============================================================================
|
||||
/** Changes the current drawing colour.
|
||||
|
||||
|
|
|
|||
|
|
@ -46,10 +46,10 @@ class JUCE_API LowLevelGraphicsContext
|
|||
{
|
||||
protected:
|
||||
//==============================================================================
|
||||
LowLevelGraphicsContext();
|
||||
LowLevelGraphicsContext() = default;
|
||||
|
||||
public:
|
||||
virtual ~LowLevelGraphicsContext();
|
||||
virtual ~LowLevelGraphicsContext() = default;
|
||||
|
||||
/** Returns true if this device is vector-based, e.g. a printer. */
|
||||
virtual bool isVectorDevice() const = 0;
|
||||
|
|
|
|||
|
|
@ -83,10 +83,6 @@ LowLevelGraphicsPostScriptRenderer::LowLevelGraphicsPostScriptRenderer (OutputSt
|
|||
<< scale << ' ' << scale << " scale\n\n";
|
||||
}
|
||||
|
||||
LowLevelGraphicsPostScriptRenderer::~LowLevelGraphicsPostScriptRenderer()
|
||||
{
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
bool LowLevelGraphicsPostScriptRenderer::isVectorDevice() const
|
||||
{
|
||||
|
|
@ -168,10 +164,6 @@ LowLevelGraphicsPostScriptRenderer::SavedState::SavedState()
|
|||
{
|
||||
}
|
||||
|
||||
LowLevelGraphicsPostScriptRenderer::SavedState::~SavedState()
|
||||
{
|
||||
}
|
||||
|
||||
void LowLevelGraphicsPostScriptRenderer::saveState()
|
||||
{
|
||||
stateStack.add (new SavedState (*stateStack.getLast()));
|
||||
|
|
|
|||
|
|
@ -42,8 +42,6 @@ public:
|
|||
int totalWidth,
|
||||
int totalHeight);
|
||||
|
||||
~LowLevelGraphicsPostScriptRenderer() override;
|
||||
|
||||
//==============================================================================
|
||||
bool isVectorDevice() const override;
|
||||
void setOrigin (Point<int>) override;
|
||||
|
|
@ -96,7 +94,6 @@ protected:
|
|||
{
|
||||
SavedState();
|
||||
SavedState& operator= (const SavedState&) = delete;
|
||||
~SavedState();
|
||||
|
||||
RectangleList<int> clip;
|
||||
int xOffset, yOffset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue