mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Cleaned up some compiler warnings. Jucer development.
This commit is contained in:
parent
e6a5f1501f
commit
b9443c8ba3
88 changed files with 862 additions and 688 deletions
|
|
@ -356,10 +356,9 @@ void KeyMappingEditorComponent::resized()
|
|||
const int buttonHeight = 20;
|
||||
h -= buttonHeight + 8;
|
||||
int x = getWidth() - 8;
|
||||
const int y = h + 6;
|
||||
|
||||
resetButton->changeWidthToFitText (buttonHeight);
|
||||
resetButton->setTopRightPosition (x, y);
|
||||
resetButton->setTopRightPosition (x, h + 6);
|
||||
}
|
||||
|
||||
tree->setBounds (0, 0, getWidth(), h);
|
||||
|
|
@ -381,7 +380,7 @@ void KeyMappingEditorComponent::buttonClicked (Button* button)
|
|||
|
||||
void KeyMappingEditorComponent::changeListenerCallback (void*)
|
||||
{
|
||||
ScopedPointer <XmlElement> openness (tree->getOpennessState (true));
|
||||
ScopedPointer <XmlElement> oldOpenness (tree->getOpennessState (true));
|
||||
|
||||
clearSubItems();
|
||||
|
||||
|
|
@ -400,8 +399,8 @@ void KeyMappingEditorComponent::changeListenerCallback (void*)
|
|||
addSubItem (new KeyCategoryTreeViewItem (this, categories[i]));
|
||||
}
|
||||
|
||||
if (openness != 0)
|
||||
tree->restoreOpennessState (*openness);
|
||||
if (oldOpenness != 0)
|
||||
tree->restoreOpennessState (*oldOpenness);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue