mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
More ScopedPointer/unique_ptr compatibility work
This commit is contained in:
parent
48a5fbd333
commit
1a60fa9765
80 changed files with 404 additions and 368 deletions
|
|
@ -367,14 +367,14 @@ CodeEditorComponent::CodeEditorComponent (CodeDocument& doc, CodeTokeniser* cons
|
|||
|
||||
setLineNumbersShown (true);
|
||||
|
||||
verticalScrollBar.addListener (pimpl);
|
||||
horizontalScrollBar.addListener (pimpl);
|
||||
document.addListener (pimpl);
|
||||
verticalScrollBar.addListener (pimpl.get());
|
||||
horizontalScrollBar.addListener (pimpl.get());
|
||||
document.addListener (pimpl.get());
|
||||
}
|
||||
|
||||
CodeEditorComponent::~CodeEditorComponent()
|
||||
{
|
||||
document.removeListener (pimpl);
|
||||
document.removeListener (pimpl.get());
|
||||
}
|
||||
|
||||
int CodeEditorComponent::getGutterSize() const noexcept
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ void PreferencesPanel::setCurrentPage (const String& pageName)
|
|||
|
||||
if (currentPage != nullptr)
|
||||
{
|
||||
addAndMakeVisible (currentPage);
|
||||
addAndMakeVisible (currentPage.get());
|
||||
currentPage->toBack();
|
||||
resized();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue