Browse Source

Removed some legacy friend class declarations that are no longer needed with modern compilers

tags/2021-05-28
jules 7 years ago
parent
commit
974b4a8351
56 changed files with 64 additions and 179 deletions
  1. +0
    -3
      extras/Projucer/Source/Licenses/jucer_LicenseController.h
  2. +0
    -2
      modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.h
  3. +31
    -36
      modules/juce_audio_devices/native/juce_linux_Midi.cpp
  4. +0
    -1
      modules/juce_audio_formats/format/juce_AudioFormatWriter.h
  5. +0
    -2
      modules/juce_audio_processors/scanning/juce_PluginListComponent.h
  6. +0
    -3
      modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h
  7. +0
    -1
      modules/juce_audio_utils/audio_cd/juce_AudioCDBurner.h
  8. +0
    -1
      modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.h
  9. +0
    -7
      modules/juce_audio_utils/gui/juce_AudioThumbnail.h
  10. +0
    -1
      modules/juce_audio_utils/gui/juce_AudioThumbnailCache.h
  11. +0
    -2
      modules/juce_audio_utils/gui/juce_AudioVisualiserComponent.h
  12. +12
    -12
      modules/juce_core/containers/juce_Variant.h
  13. +1
    -7
      modules/juce_core/files/juce_DirectoryIterator.h
  14. +0
    -4
      modules/juce_core/maths/juce_Expression.h
  15. +0
    -1
      modules/juce_core/network/juce_URL.h
  16. +0
    -1
      modules/juce_core/text/juce_LocalisedStrings.h
  17. +0
    -1
      modules/juce_core/threads/juce_ChildProcess.h
  18. +0
    -2
      modules/juce_core/threads/juce_HighResolutionTimer.h
  19. +0
    -1
      modules/juce_core/threads/juce_InterProcessLock.h
  20. +0
    -2
      modules/juce_core/threads/juce_ThreadPool.h
  21. +0
    -1
      modules/juce_core/zip/juce_GZIPCompressorOutputStream.h
  22. +0
    -1
      modules/juce_core/zip/juce_GZIPDecompressorInputStream.h
  23. +0
    -1
      modules/juce_core/zip/juce_ZipFile.h
  24. +0
    -1
      modules/juce_data_structures/undomanager/juce_UndoManager.h
  25. +0
    -4
      modules/juce_events/interprocess/juce_ConnectedChildProcess.h
  26. +1
    -2
      modules/juce_events/interprocess/juce_InterprocessConnection.h
  27. +0
    -2
      modules/juce_events/messages/juce_ApplicationBase.h
  28. +0
    -1
      modules/juce_events/messages/juce_MountedVolumeListChangeDetector.h
  29. +1
    -2
      modules/juce_graphics/fonts/juce_CustomTypeface.h
  30. +0
    -1
      modules/juce_graphics/fonts/juce_Typeface.h
  31. +0
    -1
      modules/juce_graphics/native/juce_RenderingHelpers.h
  32. +0
    -2
      modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.h
  33. +0
    -2
      modules/juce_gui_basics/buttons/juce_Button.h
  34. +0
    -2
      modules/juce_gui_basics/components/juce_Component.h
  35. +2
    -3
      modules/juce_gui_basics/components/juce_ModalComponentManager.h
  36. +0
    -5
      modules/juce_gui_basics/layout/juce_ConcertinaPanel.h
  37. +0
    -1
      modules/juce_gui_basics/layout/juce_ScrollBar.h
  38. +0
    -2
      modules/juce_gui_basics/layout/juce_TabbedButtonBar.h
  39. +0
    -2
      modules/juce_gui_basics/layout/juce_Viewport.h
  40. +0
    -2
      modules/juce_gui_basics/mouse/juce_DragAndDropContainer.h
  41. +0
    -2
      modules/juce_gui_basics/widgets/juce_Slider.h
  42. +2
    -5
      modules/juce_gui_basics/widgets/juce_TreeView.h
  43. +0
    -1
      modules/juce_gui_basics/windows/juce_DocumentWindow.h
  44. +0
    -4
      modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h
  45. +0
    -1
      modules/juce_gui_extra/embedding/juce_ActiveXControlComponent.h
  46. +0
    -1
      modules/juce_gui_extra/embedding/juce_UIViewComponent.h
  47. +0
    -1
      modules/juce_gui_extra/embedding/juce_XEmbedComponent.h
  48. +0
    -4
      modules/juce_gui_extra/misc/juce_ColourSelector.h
  49. +0
    -3
      modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.h
  50. +0
    -2
      modules/juce_gui_extra/misc/juce_LiveConstantEditor.h
  51. +14
    -17
      modules/juce_gui_extra/native/juce_linux_XEmbedComponent.cpp
  52. +0
    -2
      modules/juce_opengl/opengl/juce_OpenGLFrameBuffer.h
  53. +0
    -2
      modules/juce_osc/osc/juce_OSCReceiver.h
  54. +0
    -2
      modules/juce_osc/osc/juce_OSCSender.h
  55. +0
    -2
      modules/juce_video/capture/juce_CameraDevice.h
  56. +0
    -2
      modules/juce_video/playback/juce_VideoComponent.h

+ 0
- 3
extras/Projucer/Source/Licenses/jucer_LicenseController.h View File

@@ -103,9 +103,6 @@ private:
#if ! JUCER_ENABLE_GPL_MODE
//==============================================================================
struct ModalCompletionCallback;
friend struct ModalCompletionCallback;
friend struct ContainerDeletePolicy<LicenseThread>;
friend struct LicenseThread;
//==============================================================================


+ 0
- 2
modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.h View File

@@ -504,8 +504,6 @@ private:
//==============================================================================
class CallbackHandler;
friend class CallbackHandler;
friend struct ContainerDeletePolicy<CallbackHandler>;
std::unique_ptr<CallbackHandler> callbackHandler;
void audioDeviceIOCallbackInt (const float** inputChannelData, int totalNumInputChannels,


+ 31
- 36
modules/juce_audio_devices/native/juce_linux_Midi.cpp View File

@@ -38,6 +38,37 @@ namespace
class AlsaClient : public ReferenceCountedObject
{
public:
AlsaClient()
{
jassert (instance == nullptr);
snd_seq_open (&handle, "default", SND_SEQ_OPEN_DUPLEX, 0);
if (handle != nullptr)
{
snd_seq_nonblock (handle, SND_SEQ_NONBLOCK);
snd_seq_set_client_name (handle, JUCE_ALSA_MIDI_NAME);
clientId = snd_seq_client_id (handle);
// It's good idea to pre-allocate a good number of elements
ports.ensureStorageAllocated (32);
}
}
~AlsaClient()
{
jassert (instance != nullptr);
instance = nullptr;
if (handle != nullptr)
snd_seq_close (handle);
jassert (activeCallbacks.get() == 0);
if (inputThread)
inputThread->stopThread (3000);
}
using Ptr = ReferenceCountedObjectPtr<AlsaClient>;
//==============================================================================
@@ -251,42 +282,6 @@ private:
static AlsaClient* instance;
//==============================================================================
friend class ReferenceCountedObjectPtr<AlsaClient>;
friend struct ContainerDeletePolicy<AlsaClient>;
AlsaClient()
{
jassert (instance == nullptr);
snd_seq_open (&handle, "default", SND_SEQ_OPEN_DUPLEX, 0);
if (handle != nullptr)
{
snd_seq_nonblock (handle, SND_SEQ_NONBLOCK);
snd_seq_set_client_name (handle, JUCE_ALSA_MIDI_NAME);
clientId = snd_seq_client_id (handle);
// It's good idea to pre-allocate a good number of elements
ports.ensureStorageAllocated (32);
}
}
~AlsaClient()
{
jassert (instance != nullptr);
instance = nullptr;
if (handle != nullptr)
snd_seq_close (handle);
jassert (activeCallbacks.get() == 0);
if (inputThread)
inputThread->stopThread (3000);
}
//==============================================================================
class MidiInputThread : public Thread
{


+ 0
- 1
modules/juce_audio_formats/format/juce_AudioFormatWriter.h View File

@@ -240,7 +240,6 @@ public:
private:
class Buffer;
friend struct ContainerDeletePolicy<Buffer>;
std::unique_ptr<Buffer> buffer;
};


+ 0
- 2
modules/juce_audio_processors/scanning/juce_PluginListComponent.h View File

@@ -113,8 +113,6 @@ private:
std::unique_ptr<TableListBoxModel> tableModel;
class Scanner;
friend class Scanner;
friend struct ContainerDeletePolicy<Scanner>;
std::unique_ptr<Scanner> currentScanner;
void scanFinished (const StringArray&);


+ 0
- 3
modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h View File

@@ -197,7 +197,6 @@ public:
private:
struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SliderAttachment)
};
@@ -226,7 +225,6 @@ public:
private:
struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ComboBoxAttachment)
};
@@ -250,7 +248,6 @@ public:
private:
struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ButtonAttachment)
};


+ 0
- 1
modules/juce_audio_utils/audio_cd/juce_AudioCDBurner.h View File

@@ -162,7 +162,6 @@ private:
AudioCDBurner (const int deviceIndex);
class Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioCDBurner)


+ 0
- 1
modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.h View File

@@ -105,7 +105,6 @@ private:
const bool hideAdvancedOptionsWithButton;
class MidiInputSelectorComponentListBox;
friend struct ContainerDeletePolicy<MidiInputSelectorComponentListBox>;
std::unique_ptr<MidiInputSelectorComponentListBox> midiInputsList;
std::unique_ptr<ComboBox> midiOutputSelector;
std::unique_ptr<Label> midiInputsLabel, midiOutputLabel;


+ 0
- 7
modules/juce_audio_utils/gui/juce_AudioThumbnail.h View File

@@ -201,13 +201,6 @@ private:
class ThumbData;
class CachedWindow;
friend class LevelDataSource;
friend class ThumbData;
friend class CachedWindow;
friend struct ContainerDeletePolicy<LevelDataSource>;
friend struct ContainerDeletePolicy<ThumbData>;
friend struct ContainerDeletePolicy<CachedWindow>;
std::unique_ptr<LevelDataSource> source;
std::unique_ptr<CachedWindow> window;
OwnedArray<ThumbData> channels;


+ 0
- 1
modules/juce_audio_utils/gui/juce_AudioThumbnailCache.h View File

@@ -106,7 +106,6 @@ private:
TimeSliceThread thread;
class ThumbnailCacheEntry;
friend struct ContainerDeletePolicy<ThumbnailCacheEntry>;
OwnedArray<ThumbnailCacheEntry> thumbs;
CriticalSection lock;
int maxNumThumbsToStore;


+ 0
- 2
modules/juce_audio_utils/gui/juce_AudioVisualiserComponent.h View File

@@ -121,8 +121,6 @@ public:
private:
struct ChannelInfo;
friend struct ChannelInfo;
friend struct ContainerDeletePolicy<ChannelInfo>;
OwnedArray<ChannelInfo> channels;
int numSamples, inputSamplesPerBlock;


+ 12
- 12
modules/juce_core/containers/juce_Variant.h View File

@@ -286,18 +286,18 @@ public:
private:
//==============================================================================
class VariantType; friend class VariantType;
class VariantType_Void; friend class VariantType_Void;
class VariantType_Undefined; friend class VariantType_Undefined;
class VariantType_Int; friend class VariantType_Int;
class VariantType_Int64; friend class VariantType_Int64;
class VariantType_Double; friend class VariantType_Double;
class VariantType_Bool; friend class VariantType_Bool;
class VariantType_String; friend class VariantType_String;
class VariantType_Object; friend class VariantType_Object;
class VariantType_Array; friend class VariantType_Array;
class VariantType_Binary; friend class VariantType_Binary;
class VariantType_Method; friend class VariantType_Method;
class VariantType;
class VariantType_Void;
class VariantType_Undefined;
class VariantType_Int;
class VariantType_Int64;
class VariantType_Double;
class VariantType_Bool;
class VariantType_String;
class VariantType_Object;
class VariantType_Array;
class VariantType_Binary;
class VariantType_Method;
union ValueUnion
{


+ 1
- 7
modules/juce_core/files/juce_DirectoryIterator.h View File

@@ -118,9 +118,8 @@ public:
private:
//==============================================================================
class NativeIterator
struct NativeIterator
{
public:
NativeIterator (const File& directory, const String& wildCard);
~NativeIterator();
@@ -129,16 +128,11 @@ private:
Time* modTime, Time* creationTime, bool* isReadOnly);
class Pimpl;
private:
friend class DirectoryIterator;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NativeIterator)
};
friend struct ContainerDeletePolicy<NativeIterator::Pimpl>;
StringArray wildCards;
NativeIterator fileFinder;
String wildCard, path;


+ 0
- 4
modules/juce_core/maths/juce_Expression.h View File

@@ -243,10 +243,6 @@ private:
//==============================================================================
class Term;
struct Helpers;
friend class Term;
friend struct Helpers;
friend struct ContainerDeletePolicy<Term>;
friend class ReferenceCountedObjectPtr<Term>;
ReferenceCountedObjectPtr<Term> term;
explicit Expression (Term*);


+ 0
- 1
modules/juce_core/network/juce_URL.h View File

@@ -537,7 +537,6 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Upload)
};
friend struct ContainerDeletePolicy<Upload>;
ReferenceCountedArray<Upload> filesToUpload;
#if JUCE_IOS


+ 0
- 1
modules/juce_core/text/juce_LocalisedStrings.h View File

@@ -191,7 +191,6 @@ private:
StringArray countryCodes;
StringPairArray translations;
std::unique_ptr<LocalisedStrings> fallback;
friend struct ContainerDeletePolicy<LocalisedStrings>;
void loadFromText (const String&, bool ignoreCase);


+ 0
- 1
modules/juce_core/threads/juce_ChildProcess.h View File

@@ -104,7 +104,6 @@ public:
private:
//==============================================================================
class ActiveProcess;
friend struct ContainerDeletePolicy<ActiveProcess>;
std::unique_ptr<ActiveProcess> activeProcess;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChildProcess)


+ 0
- 2
modules/juce_core/threads/juce_HighResolutionTimer.h View File

@@ -94,8 +94,6 @@ public:
private:
struct Pimpl;
friend struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (HighResolutionTimer)


+ 0
- 1
modules/juce_core/threads/juce_InterProcessLock.h View File

@@ -110,7 +110,6 @@ public:
private:
//==============================================================================
class Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
CriticalSection lock;


+ 0
- 2
modules/juce_core/threads/juce_ThreadPool.h View File

@@ -322,8 +322,6 @@ private:
struct ThreadPoolThread;
friend class ThreadPoolJob;
friend struct ThreadPoolThread;
friend struct ContainerDeletePolicy<ThreadPoolThread>;
OwnedArray<ThreadPoolThread> threads;
CriticalSection lock;


+ 0
- 1
modules/juce_core/zip/juce_GZIPCompressorOutputStream.h View File

@@ -100,7 +100,6 @@ private:
OptionalScopedPointer<OutputStream> destStream;
class GZIPCompressorHelper;
friend struct ContainerDeletePolicy<GZIPCompressorHelper>;
std::unique_ptr<GZIPCompressorHelper> helper;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GZIPCompressorOutputStream)


+ 0
- 1
modules/juce_core/zip/juce_GZIPDecompressorInputStream.h View File

@@ -90,7 +90,6 @@ private:
HeapBlock<uint8> buffer;
class GZIPDecompressHelper;
friend struct ContainerDeletePolicy<GZIPDecompressHelper>;
std::unique_ptr<GZIPDecompressHelper> helper;
#if JUCE_CATCH_DEPRECATED_CODE_MISUSE


+ 0
- 1
modules/juce_core/zip/juce_ZipFile.h View File

@@ -224,7 +224,6 @@ public:
//==============================================================================
private:
struct Item;
friend struct ContainerDeletePolicy<Item>;
OwnedArray<Item> items;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Builder)


+ 0
- 1
modules/juce_data_structures/undomanager/juce_UndoManager.h View File

@@ -246,7 +246,6 @@ public:
private:
//==============================================================================
struct ActionSet;
friend struct ContainerDeletePolicy<ActionSet>;
OwnedArray<ActionSet> transactions, stashedFutureTransactions;
String newTransactionName;
int totalUnitsStored = 0, maxNumUnitsToKeep = 0, minimumTransactionsToKeep = 0, nextIndex = 0;


+ 0
- 4
modules/juce_events/interprocess/juce_ConnectedChildProcess.h View File

@@ -104,8 +104,6 @@ public:
private:
struct Connection;
friend struct Connection;
friend struct ContainerDeletePolicy<Connection>;
std::unique_ptr<Connection> connection;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChildProcessSlave)
@@ -194,8 +192,6 @@ private:
std::unique_ptr<ChildProcess> childProcess;
struct Connection;
friend struct Connection;
friend struct ContainerDeletePolicy<Connection>;
std::unique_ptr<Connection> connection;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChildProcessMaster)


+ 1
- 2
modules/juce_events/interprocess/juce_InterprocessConnection.h View File

@@ -197,9 +197,8 @@ private:
int readData (void*, int);
struct ConnectionThread;
friend struct ConnectionThread;
friend struct ContainerDeletePolicy<ConnectionThread>;
std::unique_ptr<ConnectionThread> thread;
void runThread();
int writeData (void*, int);


+ 0
- 2
modules/juce_events/messages/juce_ApplicationBase.h View File

@@ -290,8 +290,6 @@ private:
bool stillInitialising = true;
struct MultipleInstanceHandler;
friend struct MultipleInstanceHandler;
friend struct ContainerDeletePolicy<MultipleInstanceHandler>;
std::unique_ptr<MultipleInstanceHandler> multipleInstanceHandler;
JUCE_DECLARE_NON_COPYABLE (JUCEApplicationBase)


+ 0
- 1
modules/juce_events/messages/juce_MountedVolumeListChangeDetector.h View File

@@ -48,7 +48,6 @@ public:
private:
JUCE_PUBLIC_IN_DLL_BUILD (struct Pimpl)
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MountedVolumeListChangeDetector)


+ 1
- 2
modules/juce_graphics/fonts/juce_CustomTypeface.h View File

@@ -155,9 +155,8 @@ protected:
private:
//==============================================================================
class GlyphInfo;
friend struct ContainerDeletePolicy<GlyphInfo>;
OwnedArray<GlyphInfo> glyphs;
short lookupTable [128];
short lookupTable[128];
GlyphInfo* findGlyph (const juce_wchar character, bool loadIfNeeded) noexcept;


+ 0
- 1
modules/juce_graphics/fonts/juce_Typeface.h View File

@@ -153,7 +153,6 @@ protected:
private:
struct HintingParams;
friend struct ContainerDeletePolicy<HintingParams>;
std::unique_ptr<HintingParams> hintingParams;
CriticalSection hintingLock;


+ 0
- 1
modules/juce_graphics/native/juce_RenderingHelpers.h View File

@@ -208,7 +208,6 @@ public:
}
private:
friend struct ContainerDeletePolicy<CachedGlyphType>;
ReferenceCountedArray<CachedGlyphType> glyphs;
Atomic<int> accessCounter, hits, misses;
CriticalSection lock;


+ 0
- 2
modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.h View File

@@ -96,8 +96,6 @@ private:
Rectangle<int> bounds;
struct Pimpl;
friend struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Direct2DLowLevelGraphicsContext)


+ 0
- 2
modules/juce_gui_basics/buttons/juce_Button.h View File

@@ -482,8 +482,6 @@ private:
ListenerList<Listener> buttonListeners;
struct CallbackHelper;
friend struct CallbackHelper;
friend struct ContainerDeletePolicy<CallbackHelper>;
std::unique_ptr<CallbackHelper> callbackHelper;
uint32 buttonPressTime = 0, lastRepeatTime = 0;
ApplicationCommandManager* commandManagerToUse = nullptr;


+ 0
- 2
modules/juce_gui_basics/components/juce_Component.h View File

@@ -2280,8 +2280,6 @@ private:
std::unique_ptr<CachedComponentImage> cachedImage;
class MouseListenerList;
friend class MouseListenerList;
friend struct ContainerDeletePolicy<MouseListenerList>;
std::unique_ptr<MouseListenerList> mouseListeners;
std::unique_ptr<Array<KeyListener*>> keyListeners;
ListenerList<ComponentListener> componentListeners;


+ 2
- 3
modules/juce_gui_basics/components/juce_ModalComponentManager.h View File

@@ -141,10 +141,9 @@ protected:
private:
//==============================================================================
struct ModalItem;
friend class Component;
friend struct ContainerDeletePolicy<ModalItem>;
struct ModalItem;
OwnedArray<ModalItem> stack;
void startModal (Component*, bool autoDelete);


+ 0
- 5
modules/juce_gui_basics/layout/juce_ConcertinaPanel.h View File

@@ -125,11 +125,6 @@ private:
class PanelHolder;
struct PanelSizes;
friend class PanelHolder;
friend struct PanelSizes;
friend struct ContainerDeletePolicy<PanelSizes>;
friend struct ContainerDeletePolicy<PanelHolder>;
std::unique_ptr<PanelSizes> currentSizes;
OwnedArray<PanelHolder> holders;
ComponentAnimator animator;


+ 0
- 1
modules/juce_gui_basics/layout/juce_ScrollBar.h View File

@@ -420,7 +420,6 @@ private:
int initialDelayInMillisecs = 100, repeatDelayInMillisecs = 50, minimumDelayInMillisecs = 10;
bool vertical, isDraggingThumb = false, autohides = true, userVisibilityFlag = false;
class ScrollbarButton;
friend struct ContainerDeletePolicy<ScrollbarButton>;
std::unique_ptr<ScrollbarButton> upButton, downButton;
ListenerList<Listener> listeners;


+ 0
- 2
modules/juce_gui_basics/layout/juce_TabbedButtonBar.h View File

@@ -359,8 +359,6 @@ private:
int currentTabIndex = -1;
class BehindFrontTabComp;
friend class BehindFrontTabComp;
friend struct ContainerDeletePolicy<BehindFrontTabComp>;
std::unique_ptr<BehindFrontTabComp> behindFrontTab;
std::unique_ptr<Button> extraTabsButton;


+ 0
- 2
modules/juce_gui_basics/layout/juce_Viewport.h View File

@@ -322,8 +322,6 @@ private:
bool vScrollbarRight = true, hScrollbarBottom = true;
struct DragToScrollListener;
friend struct DragToScrollListener;
friend struct ContainerDeletePolicy<DragToScrollListener>;
std::unique_ptr<DragToScrollListener> dragToScrollListener;
Point<int> viewportPosToCompPos (Point<int>) const;


+ 0
- 2
modules/juce_gui_basics/mouse/juce_DragAndDropContainer.h View File

@@ -230,8 +230,6 @@ protected:
private:
//==============================================================================
class DragImageComponent;
friend class DragImageComponent;
friend struct ContainerDeletePolicy<DragImageComponent>;
OwnedArray<DragImageComponent> dragImageComponents;
const MouseInputSource* getMouseInputSourceForDrag (Component* sourceComponent, const MouseInputSource* inputSourceCausingDrag);


+ 0
- 2
modules/juce_gui_basics/widgets/juce_Slider.h View File

@@ -977,8 +977,6 @@ public:
private:
//==============================================================================
JUCE_PUBLIC_IN_DLL_BUILD (class Pimpl)
friend class Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
void init (SliderStyle, TextEntryBoxPosition);


+ 2
- 5
modules/juce_gui_basics/widgets/juce_TreeView.h View File

@@ -900,15 +900,12 @@ public:
void itemDropped (const SourceDetails&) override;
private:
friend class TreeViewItem;
class ContentComponent;
class TreeViewport;
class InsertPointHighlight;
class TargetGroupHighlight;
friend class TreeViewItem;
friend class ContentComponent;
friend struct ContainerDeletePolicy<TreeViewport>;
friend struct ContainerDeletePolicy<InsertPointHighlight>;
friend struct ContainerDeletePolicy<TargetGroupHighlight>;
std::unique_ptr<TreeViewport> viewport;
CriticalSection nodeAlterationLock;


+ 0
- 1
modules/juce_gui_basics/windows/juce_DocumentWindow.h View File

@@ -286,7 +286,6 @@ private:
MenuBarModel* menuBarModel = nullptr;
class ButtonListenerProxy;
friend struct ContainerDeletePolicy<ButtonListenerProxy>;
std::unique_ptr<ButtonListenerProxy> buttonListener;
void repaintTitleBar();


+ 0
- 4
modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h View File

@@ -382,13 +382,9 @@ private:
ApplicationCommandManager* appCommandManager = nullptr;
class Pimpl;
friend class Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
class GutterComponent;
friend class GutterComponent;
friend struct ContainerDeletePolicy<GutterComponent>;
std::unique_ptr<GutterComponent> gutter;
enum DragType


+ 0
- 1
modules/juce_gui_extra/embedding/juce_ActiveXControlComponent.h View File

@@ -118,7 +118,6 @@ public:
private:
class Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> control;
bool mouseEventsAllowed = true;


+ 0
- 1
modules/juce_gui_extra/embedding/juce_UIViewComponent.h View File

@@ -80,7 +80,6 @@ public:
private:
class Pimpl;
friend class Pimpl;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (UIViewComponent)


+ 0
- 1
modules/juce_gui_extra/embedding/juce_XEmbedComponent.h View File

@@ -107,7 +107,6 @@ private:
friend unsigned long juce_getCurrentFocusWindow (ComponentPeer*);
class Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
};


+ 0
- 4
modules/juce_gui_extra/misc/juce_ColourSelector.h View File

@@ -142,10 +142,6 @@ private:
class ColourComponentSlider;
class ColourSpaceMarker;
class HueSelectorMarker;
friend class ColourSpaceView;
friend struct ContainerDeletePolicy<ColourSpaceView>;
friend class HueSelectorComp;
friend struct ContainerDeletePolicy<HueSelectorComp>;
Colour colour;
float h, s, v;


+ 0
- 3
modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.h View File

@@ -125,9 +125,6 @@ private:
class MappingItem;
class CategoryItem;
class ItemComponent;
friend class TopLevelItem;
friend struct ContainerDeletePolicy<ChangeKeyButton>;
friend struct ContainerDeletePolicy<TopLevelItem>;
std::unique_ptr<TopLevelItem> treeItem;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (KeyMappingEditorComponent)


+ 0
- 2
modules/juce_gui_extra/misc/juce_LiveConstantEditor.h View File

@@ -220,8 +220,6 @@ namespace LiveConstantEditor
OwnedArray<CodeDocument> documents;
Array<File> documentFiles;
class EditorWindow;
friend class EditorWindow;
friend struct ContainerDeletePolicy<EditorWindow>;
Component::SafePointer<EditorWindow> editorWindow;
CriticalSection lock;


+ 14
- 17
modules/juce_gui_extra/native/juce_linux_XEmbedComponent.cpp View File

@@ -73,9 +73,21 @@ public:
};
//==============================================================================
class SharedKeyWindow : public ReferenceCountedObject
struct SharedKeyWindow : public ReferenceCountedObject
{
public:
SharedKeyWindow (ComponentPeer* peerToUse)
: keyPeer (peerToUse),
keyProxy (juce_createKeyProxyWindow (keyPeer))
{}
~SharedKeyWindow()
{
juce_deleteKeyProxyWindow (keyPeer);
auto& keyWindows = getKeyWindows();
keyWindows.remove (keyPeer);
}
using Ptr = ReferenceCountedObjectPtr<SharedKeyWindow>;
//==============================================================================
@@ -110,21 +122,6 @@ public:
private:
//==============================================================================
friend struct ContainerDeletePolicy<SharedKeyWindow>;
SharedKeyWindow (ComponentPeer* peerToUse)
: keyPeer (peerToUse),
keyProxy (juce_createKeyProxyWindow (keyPeer))
{}
~SharedKeyWindow()
{
juce_deleteKeyProxyWindow (keyPeer);
auto& keyWindows = getKeyWindows();
keyWindows.remove (keyPeer);
}
ComponentPeer* keyPeer;
Window keyProxy;


+ 0
- 2
modules/juce_opengl/opengl/juce_OpenGLFrameBuffer.h View File

@@ -123,11 +123,9 @@ public:
private:
class Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
class SavedState;
friend struct ContainerDeletePolicy<SavedState>;
std::unique_ptr<SavedState> savedState;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OpenGLFrameBuffer)


+ 0
- 2
modules/juce_osc/osc/juce_OSCReceiver.h View File

@@ -216,8 +216,6 @@ public:
private:
//==============================================================================
struct Pimpl;
friend struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
friend struct OSCReceiverCallbackMessage;


+ 0
- 2
modules/juce_osc/osc/juce_OSCSender.h View File

@@ -141,8 +141,6 @@ public:
private:
//==============================================================================
struct Pimpl;
friend struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OSCSender)


+ 0
- 2
modules/juce_video/capture/juce_CameraDevice.h View File

@@ -220,8 +220,6 @@ private:
String name;
struct Pimpl;
friend struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
struct ViewerComponent;


+ 0
- 2
modules/juce_video/playback/juce_VideoComponent.h View File

@@ -172,8 +172,6 @@ public:
private:
//==============================================================================
struct Pimpl;
friend struct Pimpl;
friend struct ContainerDeletePolicy<Pimpl>;
std::unique_ptr<Pimpl> pimpl;
void resized() override;


Loading…
Cancel
Save