mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-28 02:30:05 +00:00
Refactored some code to cut down on warnings from automatic code-analysis tools.
This commit is contained in:
parent
3213bec481
commit
b83e97a6f7
40 changed files with 594 additions and 637 deletions
|
|
@ -41,18 +41,12 @@ ResizableWindow::ResizableWindow (const String& name,
|
|||
ownsContentComponent (false),
|
||||
resizeToFitContent (false),
|
||||
fullscreen (false),
|
||||
lastNonFullScreenPos (50, 50, 256, 256),
|
||||
constrainer (nullptr)
|
||||
#if JUCE_DEBUG
|
||||
, hasBeenResized (false)
|
||||
#endif
|
||||
{
|
||||
defaultConstrainer.setMinimumOnscreenAmounts (0x10000, 16, 24, 16);
|
||||
|
||||
lastNonFullScreenPos.setBounds (50, 50, 256, 256);
|
||||
|
||||
if (addToDesktop_)
|
||||
Component::addToDesktop (getDesktopWindowStyleFlags());
|
||||
initialise (addToDesktop_);
|
||||
}
|
||||
|
||||
ResizableWindow::ResizableWindow (const String& name,
|
||||
|
|
@ -62,7 +56,6 @@ ResizableWindow::ResizableWindow (const String& name,
|
|||
ownsContentComponent (false),
|
||||
resizeToFitContent (false),
|
||||
fullscreen (false),
|
||||
lastNonFullScreenPos (50, 50, 256, 256),
|
||||
constrainer (nullptr)
|
||||
#if JUCE_DEBUG
|
||||
, hasBeenResized (false)
|
||||
|
|
@ -70,10 +63,7 @@ ResizableWindow::ResizableWindow (const String& name,
|
|||
{
|
||||
setBackgroundColour (backgroundColour_);
|
||||
|
||||
defaultConstrainer.setMinimumOnscreenAmounts (0x10000, 16, 24, 16);
|
||||
|
||||
if (addToDesktop_)
|
||||
Component::addToDesktop (getDesktopWindowStyleFlags());
|
||||
initialise (addToDesktop_);
|
||||
}
|
||||
|
||||
ResizableWindow::~ResizableWindow()
|
||||
|
|
@ -93,6 +83,16 @@ ResizableWindow::~ResizableWindow()
|
|||
jassert (getNumChildComponents() == 0);
|
||||
}
|
||||
|
||||
void ResizableWindow::initialise (const bool addToDesktop)
|
||||
{
|
||||
defaultConstrainer.setMinimumOnscreenAmounts (0x10000, 16, 24, 16);
|
||||
|
||||
lastNonFullScreenPos.setBounds (50, 50, 256, 256);
|
||||
|
||||
if (addToDesktop)
|
||||
Component::addToDesktop (ResizableWindow::getDesktopWindowStyleFlags());
|
||||
}
|
||||
|
||||
int ResizableWindow::getDesktopWindowStyleFlags() const
|
||||
{
|
||||
int styleFlags = TopLevelWindow::getDesktopWindowStyleFlags();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue