Browse Source

New class LeakedObjectDetector, and JUCE_LEAK_DETECTOR macros for spotting leakages in a neat, cross-platform way. Used these to replace all the old juce_UseDebuggingNewOperator stuff in all the classes. Also some drawable and component transform fixes.

tags/2021-05-28
Julian Storer 15 years ago
parent
commit
a5cf4030f5
100 changed files with 1213 additions and 1892 deletions
  1. +2
    -0
      Builds/MacOSX/Juce.xcodeproj/project.pbxproj
  2. +1
    -0
      Builds/VisualStudio2005/Juce.vcproj
  3. +1
    -0
      Builds/VisualStudio2008/Juce.vcproj
  4. +1
    -0
      Builds/VisualStudio2008_DLL/Juce.vcproj
  5. +1
    -0
      Builds/VisualStudio2010/Juce.vcxproj
  6. +3
    -0
      Builds/VisualStudio2010/Juce.vcxproj.filters
  7. +2
    -0
      Builds/iPhone/Juce.xcodeproj/project.pbxproj
  8. +2
    -0
      Juce.jucer
  9. +4
    -7
      extras/Jucer (experimental)/JuceLibraryCode/BinaryData.cpp
  10. +2
    -2
      extras/Jucer (experimental)/JuceLibraryCode/BinaryData.h
  11. +1
    -5
      extras/Jucer (experimental)/Source/Application/jucer_DocumentEditorComponent.h
  12. +2
    -2
      extras/Jucer (experimental)/Source/Application/jucer_FilePreviewComponent.h
  13. +2
    -3
      extras/Jucer (experimental)/Source/Application/jucer_MainWindow.h
  14. +2
    -2
      extras/Jucer (experimental)/Source/Application/jucer_OpenDocumentManager.h
  15. +2
    -2
      extras/Jucer (experimental)/Source/BinaryData/jucer_AudioPluginFilterTemplate.h
  16. +2
    -5
      extras/Jucer (experimental)/Source/BinaryData/jucer_WindowTemplate.h
  17. +2
    -3
      extras/Jucer (experimental)/Source/Code Editor/jucer_SourceCodeEditor.h
  18. +1
    -1
      extras/Jucer (experimental)/Source/Project/jucer_GroupInformationComponent.cpp
  19. +1
    -6
      extras/Jucer (experimental)/Source/Project/jucer_GroupInformationComponent.h
  20. +2
    -3
      extras/Jucer (experimental)/Source/Project/jucer_ProjectContentComponent.h
  21. +2
    -2
      extras/Jucer (experimental)/Source/Project/jucer_ProjectExport_MSVC.h
  22. +1
    -1
      extras/Jucer (experimental)/Source/Project/jucer_ProjectInformationComponent.cpp
  23. +3
    -7
      extras/Jucer (experimental)/Source/Project/jucer_ProjectInformationComponent.h
  24. +2
    -8
      extras/Jucer (experimental)/Source/Utility/jucer_MiscUtilities.h
  25. +2
    -2
      extras/Jucer (experimental)/Source/Utility/jucer_StoredSettings.h
  26. +1
    -6
      extras/Jucer (experimental)/Source/Utility/jucer_ValueSourceHelpers.h
  27. +4
    -7
      extras/audio plugin host/Source/GraphEditorPanel.h
  28. +3
    -2
      extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp
  29. +3
    -4
      extras/audio plugins/wrapper/Standalone/juce_AudioFilterStreamer.h
  30. +1
    -4
      extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.h
  31. +5
    -5
      extras/audio plugins/wrapper/VST/juce_VST_Wrapper.cpp
  32. +2
    -2
      extras/juce demo/Source/MainDemoWindow.cpp
  33. +2
    -3
      extras/juce demo/Source/demos/CodeEditorDemo.cpp
  34. +2
    -5
      extras/juce demo/Source/demos/DragAndDropDemo.cpp
  35. +2
    -3
      extras/juce demo/Source/demos/InterprocessCommsDemo.cpp
  36. +2
    -2
      extras/juce demo/Source/demos/TableDemo.cpp
  37. +13
    -10
      extras/juce demo/Source/demos/ThreadingDemo.cpp
  38. +2
    -2
      extras/juce demo/Source/demos/TreeViewDemo.cpp
  39. +3
    -7
      extras/juce demo/Source/demos/WebBrowserDemo.cpp
  40. +2
    -2
      extras/juce demo/Source/demos/WidgetsDemo.cpp
  41. +5
    -0
      juce.h
  42. +4
    -3
      juce_Config.h
  43. +257
    -527
      juce_amalgamated.cpp
  44. +729
    -971
      juce_amalgamated.h
  45. +1
    -5
      src/application/juce_ApplicationCommandManager.h
  46. +2
    -5
      src/application/juce_ApplicationCommandTarget.h
  47. +2
    -6
      src/application/juce_ApplicationProperties.h
  48. +4
    -10
      src/audio/audio_file_formats/juce_AiffAudioFormat.cpp
  49. +2
    -2
      src/audio/audio_file_formats/juce_AiffAudioFormat.h
  50. +3
    -3
      src/audio/audio_file_formats/juce_AudioCDBurner.h
  51. +2
    -5
      src/audio/audio_file_formats/juce_AudioCDReader.h
  52. +3
    -3
      src/audio/audio_file_formats/juce_AudioFormatManager.h
  53. +2
    -5
      src/audio/audio_file_formats/juce_AudioFormatReader.h
  54. +2
    -5
      src/audio/audio_file_formats/juce_AudioFormatWriter.h
  55. +2
    -5
      src/audio/audio_file_formats/juce_AudioSubsectionReader.h
  56. +3
    -3
      src/audio/audio_file_formats/juce_AudioThumbnail.h
  57. +1
    -1
      src/audio/audio_file_formats/juce_AudioThumbnailCache.cpp
  58. +2
    -3
      src/audio/audio_file_formats/juce_AudioThumbnailCache.h
  59. +2
    -8
      src/audio/audio_file_formats/juce_FlacAudioFormat.cpp
  60. +2
    -2
      src/audio/audio_file_formats/juce_FlacAudioFormat.h
  61. +4
    -2
      src/audio/audio_file_formats/juce_OggVorbisAudioFormat.cpp
  62. +2
    -2
      src/audio/audio_file_formats/juce_OggVorbisAudioFormat.h
  63. +1
    -4
      src/audio/audio_file_formats/juce_QuickTimeAudioFormat.cpp
  64. +2
    -2
      src/audio/audio_file_formats/juce_QuickTimeAudioFormat.h
  65. +2
    -8
      src/audio/audio_file_formats/juce_WavAudioFormat.cpp
  66. +3
    -2
      src/audio/audio_file_formats/juce_WavAudioFormat.h
  67. +2
    -6
      src/audio/audio_sources/juce_AudioFormatReaderSource.h
  68. +1
    -5
      src/audio/audio_sources/juce_AudioSourcePlayer.h
  69. +2
    -5
      src/audio/audio_sources/juce_AudioTransportSource.h
  70. +1
    -5
      src/audio/audio_sources/juce_BufferingAudioSource.h
  71. +2
    -5
      src/audio/audio_sources/juce_ChannelRemappingAudioSource.h
  72. +1
    -5
      src/audio/audio_sources/juce_IIRFilterAudioSource.h
  73. +1
    -5
      src/audio/audio_sources/juce_MixerAudioSource.h
  74. +2
    -5
      src/audio/audio_sources/juce_ResamplingAudioSource.h
  75. +1
    -5
      src/audio/audio_sources/juce_ToneGeneratorAudioSource.h
  76. +1
    -5
      src/audio/devices/juce_AudioDeviceManager.h
  77. +3
    -5
      src/audio/devices/juce_MidiInput.h
  78. +2
    -7
      src/audio/devices/juce_MidiOutput.h
  79. +3
    -3
      src/audio/dsp/juce_AudioSampleBuffer.h
  80. +2
    -4
      src/audio/dsp/juce_IIRFilter.h
  81. +4
    -7
      src/audio/midi/juce_MidiBuffer.h
  82. +3
    -6
      src/audio/midi/juce_MidiFile.h
  83. +2
    -5
      src/audio/midi/juce_MidiKeyboardState.h
  84. +1
    -4
      src/audio/midi/juce_MidiMessage.h
  85. +2
    -5
      src/audio/midi/juce_MidiMessageCollector.h
  86. +4
    -6
      src/audio/midi/juce_MidiMessageSequence.h
  87. +2
    -5
      src/audio/plugins/formats/juce_AudioUnitPluginFormat.h
  88. +6
    -6
      src/audio/plugins/formats/juce_AudioUnitPluginFormat.mm
  89. +1
    -5
      src/audio/plugins/formats/juce_DirectXPluginFormat.h
  90. +1
    -5
      src/audio/plugins/formats/juce_LADSPAPluginFormat.h
  91. +8
    -8
      src/audio/plugins/formats/juce_VSTPluginFormat.cpp
  92. +3
    -6
      src/audio/plugins/formats/juce_VSTPluginFormat.h
  93. +2
    -6
      src/audio/plugins/juce_AudioPluginFormat.h
  94. +2
    -5
      src/audio/plugins/juce_AudioPluginFormatManager.h
  95. +2
    -5
      src/audio/plugins/juce_AudioPluginInstance.h
  96. +2
    -5
      src/audio/plugins/juce_KnownPluginList.h
  97. +2
    -1
      src/audio/plugins/juce_PluginDescription.h
  98. +2
    -5
      src/audio/plugins/juce_PluginDirectoryScanner.h
  99. +2
    -5
      src/audio/plugins/juce_PluginListComponent.h
  100. +1
    -5
      src/audio/processors/juce_AudioProcessor.h

+ 2
- 0
Builds/MacOSX/Juce.xcodeproj/project.pbxproj View File

@@ -521,6 +521,7 @@
C8441B7B3E4CCD4A257B4BFE = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_FileLogger.h; path = ../../src/core/juce_FileLogger.h; sourceTree = SOURCE_ROOT; };
5B789AAC295BA4BB6D5AD4A3 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Initialisation.cpp; path = ../../src/core/juce_Initialisation.cpp; sourceTree = SOURCE_ROOT; };
92ACFFCCCD1C85A0F8C6F80F = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Initialisation.h; path = ../../src/core/juce_Initialisation.h; sourceTree = SOURCE_ROOT; };
DFE0DF77674CB28A2485FFDF = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_LeakedObjectDetector.h; path = ../../src/core/juce_LeakedObjectDetector.h; sourceTree = SOURCE_ROOT; };
4555F03DBD059EEDECEF9F85 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Logger.cpp; path = ../../src/core/juce_Logger.cpp; sourceTree = SOURCE_ROOT; };
63F44EC0485FCA050814967E = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Logger.h; path = ../../src/core/juce_Logger.h; sourceTree = SOURCE_ROOT; };
94BDD1E20915D83AA6729D94 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_MathsFunctions.h; path = ../../src/core/juce_MathsFunctions.h; sourceTree = SOURCE_ROOT; };
@@ -1245,6 +1246,7 @@
C8441B7B3E4CCD4A257B4BFE,
5B789AAC295BA4BB6D5AD4A3,
92ACFFCCCD1C85A0F8C6F80F,
DFE0DF77674CB28A2485FFDF,
4555F03DBD059EEDECEF9F85,
63F44EC0485FCA050814967E,
94BDD1E20915D83AA6729D94,


+ 1
- 0
Builds/VisualStudio2005/Juce.vcproj View File

@@ -386,6 +386,7 @@
<File RelativePath="..\..\src\core\juce_FileLogger.h"/>
<File RelativePath="..\..\src\core\juce_Initialisation.cpp"/>
<File RelativePath="..\..\src\core\juce_Initialisation.h"/>
<File RelativePath="..\..\src\core\juce_LeakedObjectDetector.h"/>
<File RelativePath="..\..\src\core\juce_Logger.cpp"/>
<File RelativePath="..\..\src\core\juce_Logger.h"/>
<File RelativePath="..\..\src\core\juce_MathsFunctions.h"/>


+ 1
- 0
Builds/VisualStudio2008/Juce.vcproj View File

@@ -386,6 +386,7 @@
<File RelativePath="..\..\src\core\juce_FileLogger.h"/>
<File RelativePath="..\..\src\core\juce_Initialisation.cpp"/>
<File RelativePath="..\..\src\core\juce_Initialisation.h"/>
<File RelativePath="..\..\src\core\juce_LeakedObjectDetector.h"/>
<File RelativePath="..\..\src\core\juce_Logger.cpp"/>
<File RelativePath="..\..\src\core\juce_Logger.h"/>
<File RelativePath="..\..\src\core\juce_MathsFunctions.h"/>


+ 1
- 0
Builds/VisualStudio2008_DLL/Juce.vcproj View File

@@ -388,6 +388,7 @@
<File RelativePath="..\..\src\core\juce_FileLogger.h"/>
<File RelativePath="..\..\src\core\juce_Initialisation.cpp"/>
<File RelativePath="..\..\src\core\juce_Initialisation.h"/>
<File RelativePath="..\..\src\core\juce_LeakedObjectDetector.h"/>
<File RelativePath="..\..\src\core\juce_Logger.cpp"/>
<File RelativePath="..\..\src\core\juce_Logger.h"/>
<File RelativePath="..\..\src\core\juce_MathsFunctions.h"/>


+ 1
- 0
Builds/VisualStudio2010/Juce.vcxproj View File

@@ -529,6 +529,7 @@
<ClInclude Include="..\..\src\core\juce_ByteOrder.h"/>
<ClInclude Include="..\..\src\core\juce_FileLogger.h"/>
<ClInclude Include="..\..\src\core\juce_Initialisation.h"/>
<ClInclude Include="..\..\src\core\juce_LeakedObjectDetector.h"/>
<ClInclude Include="..\..\src\core\juce_Logger.h"/>
<ClInclude Include="..\..\src\core\juce_MathsFunctions.h"/>
<ClInclude Include="..\..\src\core\juce_Memory.h"/>


+ 3
- 0
Builds/VisualStudio2010/Juce.vcxproj.filters View File

@@ -1509,6 +1509,9 @@
<ClInclude Include="..\..\src\core\juce_Initialisation.h">
<Filter>Juce\Source\core</Filter>
</ClInclude>
<ClInclude Include="..\..\src\core\juce_LeakedObjectDetector.h">
<Filter>Juce\Source\core</Filter>
</ClInclude>
<ClInclude Include="..\..\src\core\juce_Logger.h">
<Filter>Juce\Source\core</Filter>
</ClInclude>


+ 2
- 0
Builds/iPhone/Juce.xcodeproj/project.pbxproj View File

@@ -521,6 +521,7 @@
C8441B7B3E4CCD4A257B4BFE = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_FileLogger.h; path = ../../src/core/juce_FileLogger.h; sourceTree = SOURCE_ROOT; };
5B789AAC295BA4BB6D5AD4A3 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Initialisation.cpp; path = ../../src/core/juce_Initialisation.cpp; sourceTree = SOURCE_ROOT; };
92ACFFCCCD1C85A0F8C6F80F = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Initialisation.h; path = ../../src/core/juce_Initialisation.h; sourceTree = SOURCE_ROOT; };
DFE0DF77674CB28A2485FFDF = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_LeakedObjectDetector.h; path = ../../src/core/juce_LeakedObjectDetector.h; sourceTree = SOURCE_ROOT; };
4555F03DBD059EEDECEF9F85 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Logger.cpp; path = ../../src/core/juce_Logger.cpp; sourceTree = SOURCE_ROOT; };
63F44EC0485FCA050814967E = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Logger.h; path = ../../src/core/juce_Logger.h; sourceTree = SOURCE_ROOT; };
94BDD1E20915D83AA6729D94 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_MathsFunctions.h; path = ../../src/core/juce_MathsFunctions.h; sourceTree = SOURCE_ROOT; };
@@ -1245,6 +1246,7 @@
C8441B7B3E4CCD4A257B4BFE,
5B789AAC295BA4BB6D5AD4A3,
92ACFFCCCD1C85A0F8C6F80F,
DFE0DF77674CB28A2485FFDF,
4555F03DBD059EEDECEF9F85,
63F44EC0485FCA050814967E,
94BDD1E20915D83AA6729D94,


+ 2
- 0
Juce.jucer View File

@@ -427,6 +427,8 @@
file="src/core/juce_Initialisation.cpp"/>
<FILE id="nsfdNZAs" name="juce_Initialisation.h" compile="0" resource="0"
file="src/core/juce_Initialisation.h"/>
<FILE id="hRYAldz" name="juce_LeakedObjectDetector.h" compile="0" resource="0"
file="src/core/juce_LeakedObjectDetector.h"/>
<FILE id="43AWfo8b2" name="juce_Logger.cpp" compile="1" resource="0"
file="src/core/juce_Logger.cpp"/>
<FILE id="KrXxapCit" name="juce_Logger.h" compile="0" resource="0"


+ 4
- 7
extras/Jucer (experimental)/JuceLibraryCode/BinaryData.cpp View File

@@ -626,9 +626,9 @@ static const unsigned char temp_356ba65f[] =
" void getStateInformation (MemoryBlock& destData);\r\n"
" void setStateInformation (const void* data, int sizeInBytes);\r\n"
"\r\n"
"private:\r\n"
" //==============================================================================\r\n"
" juce_UseDebuggingNewOperator\r\n"
"\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FILTERCLASSNAME);\r\n"
"};\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
@@ -855,12 +855,9 @@ static const unsigned char temp_ae1b823a[] =
" implementation calls the superclass's method.\r\n"
" */\r\n"
"\r\n"
" //==============================================================================\r\n"
" juce_UseDebuggingNewOperator\r\n"
"\r\n"
"private:\r\n"
" WINDOWCLASS (const WINDOWCLASS&);\r\n"
" WINDOWCLASS& operator= (const WINDOWCLASS&);\r\n"
" //==============================================================================\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WINDOWCLASS)\r\n"
"};\r\n"
"\r\n"
"\r\n"


+ 2
- 2
extras/Jucer (experimental)/JuceLibraryCode/BinaryData.h View File

@@ -23,7 +23,7 @@ namespace BinaryData
const int jucer_AudioPluginFilterTemplate_cppSize = 4480;
extern const char* jucer_AudioPluginFilterTemplate_h;
const int jucer_AudioPluginFilterTemplate_hSize = 2382;
const int jucer_AudioPluginFilterTemplate_hSize = 2425;
extern const char* jucer_MainConsoleAppTemplate_cpp;
const int jucer_MainConsoleAppTemplate_cppSize = 749;
@@ -41,7 +41,7 @@ namespace BinaryData
const int jucer_WindowTemplate_cppSize = 794;
extern const char* jucer_WindowTemplate_h;
const int jucer_WindowTemplate_hSize = 1290;
const int jucer_WindowTemplate_hSize = 1229;
extern const char* juce_icon_png;
const int juce_icon_pngSize = 19826;


+ 1
- 5
extras/Jucer (experimental)/Source/Application/jucer_DocumentEditorComponent.h View File

@@ -50,15 +50,11 @@ public:
void getCommandInfo (CommandID commandID, ApplicationCommandInfo& result);
bool perform (const InvocationInfo& info);
//==============================================================================
juce_UseDebuggingNewOperator
protected:
OpenDocumentManager::Document* document;
private:
DocumentEditorComponent (const DocumentEditorComponent&);
DocumentEditorComponent& operator= (const DocumentEditorComponent&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DocumentEditorComponent);
};


+ 2
- 2
extras/Jucer (experimental)/Source/Application/jucer_FilePreviewComponent.h View File

@@ -41,8 +41,6 @@ public:
void paint (Graphics& g);
void resized();
//==============================================================================
juce_UseDebuggingNewOperator
private:
StringArray facts;
@@ -50,6 +48,8 @@ private:
Image image;
void tryToLoadImage();
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ItemPreviewComponent);
};


+ 2
- 3
extras/Jucer (experimental)/Source/Application/jucer_MainWindow.h View File

@@ -71,9 +71,6 @@ public:
void getCommandInfo (CommandID commandID, ApplicationCommandInfo& result);
bool perform (const InvocationInfo& info);
//==============================================================================
juce_UseDebuggingNewOperator
private:
ScopedPointer <Project> currentProject;
@@ -85,6 +82,8 @@ private:
return "projectWindowPos_" + currentProject->getProjectUID();
}
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainWindow);
};


+ 2
- 2
extras/Jucer (experimental)/Source/Application/jucer_OpenDocumentManager.h View File

@@ -107,13 +107,13 @@ public:
void registerType (DocumentType* type);
//==============================================================================
juce_UseDebuggingNewOperator
private:
OwnedArray <DocumentType> types;
OwnedArray <Document> documents;
Array <DocumentCloseListener*> listeners;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OpenDocumentManager);
};


+ 2
- 2
extras/Jucer (experimental)/Source/BinaryData/jucer_AudioPluginFilterTemplate.h View File

@@ -64,9 +64,9 @@ public:
void getStateInformation (MemoryBlock& destData);
void setStateInformation (const void* data, int sizeInBytes);
private:
//==============================================================================
juce_UseDebuggingNewOperator
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FILTERCLASSNAME);
};
#endif // HEADERGUARD

+ 2
- 5
extras/Jucer (experimental)/Source/BinaryData/jucer_WindowTemplate.h View File

@@ -32,12 +32,9 @@ public:
implementation calls the superclass's method.
*/
//==============================================================================
juce_UseDebuggingNewOperator
private:
WINDOWCLASS (const WINDOWCLASS&);
WINDOWCLASS& operator= (const WINDOWCLASS&);
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WINDOWCLASS)
};


+ 2
- 3
extras/Jucer (experimental)/Source/Code Editor/jucer_SourceCodeEditor.h View File

@@ -48,11 +48,10 @@ public:
void resized();
//==============================================================================
juce_UseDebuggingNewOperator
private:
CodeEditorComponent editor;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SourceCodeEditor);
};


+ 1
- 1
extras/Jucer (experimental)/Source/Project/jucer_GroupInformationComponent.cpp View File

@@ -95,7 +95,7 @@ public:
{
int x = getHeight() + 6;
item.getIcon()->drawWithin (g, Rectangle<float> (2, 2, x - 4, getHeight() - 4),
item.getIcon()->drawWithin (g, Rectangle<float> (2.0f, 2.0f, x - 4.0f, getHeight() - 4.0f),
RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize, 1.0f);
g.setColour (Colours::black);


+ 1
- 6
extras/Jucer (experimental)/Source/Project/jucer_GroupInformationComponent.h View File

@@ -52,16 +52,11 @@ public:
void valueTreeChildrenChanged (ValueTree& treeWhoseChildHasChanged);
void valueTreeParentChanged (ValueTree& treeWhoseParentHasChanged);
//==============================================================================
juce_UseDebuggingNewOperator
private:
Project::Item item;
ListBox list;
//==============================================================================
GroupInformationComponent (const GroupInformationComponent&);
const GroupInformationComponent& operator= (const GroupInformationComponent&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GroupInformationComponent);
};


+ 2
- 3
extras/Jucer (experimental)/Source/Project/jucer_ProjectContentComponent.h View File

@@ -65,9 +65,6 @@ public:
bool isCommandActive (const CommandID commandID);
bool perform (const InvocationInfo& info);
//==============================================================================
juce_UseDebuggingNewOperator
private:
ScopedPointer<TreeView> projectTree;
Project* project;
@@ -77,6 +74,8 @@ private:
ScopedPointer<StretchableLayoutResizerBar> resizerBar;
void updateMainWindowTitle();
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ProjectContentComponent);
};


+ 2
- 2
extras/Jucer (experimental)/Source/Project/jucer_ProjectExport_MSVC.h View File

@@ -351,14 +351,14 @@ protected:
if (++count == 8)
{
dataBlock.writeByte (mask);
dataBlock.writeByte ((char) mask);
count = 0;
mask = 0;
}
}
if (mask != 0)
dataBlock.writeByte (mask);
dataBlock.writeByte ((char) mask);
for (int i = maskStride - w / 8; --i >= 0;)
dataBlock.writeByte (0);


+ 1
- 1
extras/Jucer (experimental)/Source/Project/jucer_ProjectInformationComponent.cpp View File

@@ -7,7 +7,7 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved.
Created for JUCE version: JUCE v1.52.92
Created for JUCE version: JUCE v1.52.97
------------------------------------------------------------------------------


+ 3
- 7
extras/Jucer (experimental)/Source/Project/jucer_ProjectInformationComponent.h View File

@@ -7,7 +7,7 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved.
Created for JUCE version: JUCE v1.52.92
Created for JUCE version: JUCE v1.52.97
------------------------------------------------------------------------------
@@ -51,10 +51,8 @@ public:
void paint (Graphics& g);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
//[UserVariables] -- You can add your own custom variables in this section.
Project& project;
@@ -72,9 +70,7 @@ private:
TextButton saveAndOpenButton;
//==============================================================================
// (prevent copy constructor and operator= being generated..)
ProjectInformationComponent (const ProjectInformationComponent&);
ProjectInformationComponent& operator= (const ProjectInformationComponent&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ProjectInformationComponent);
};


+ 2
- 8
extras/Jucer (experimental)/Source/Utility/jucer_MiscUtilities.h View File

@@ -134,11 +134,8 @@ public:
{
}
juce_UseDebuggingNewOperator
private:
JucerToolbarButton (const JucerToolbarButton&);
JucerToolbarButton& operator= (const JucerToolbarButton&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JucerToolbarButton);
};
@@ -235,8 +232,6 @@ public:
/** @internal */
void handleAsyncUpdate();
juce_UseDebuggingNewOperator
private:
//==============================================================================
struct ComponentPosition
@@ -260,6 +255,5 @@ private:
OwnedArray <ComponentPosition> components;
OwnedArray <MarkerPosition> markers;
RelativeRectangleLayoutManager (const RelativeRectangleLayoutManager&);
RelativeRectangleLayoutManager& operator= (const RelativeRectangleLayoutManager&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (RelativeRectangleLayoutManager);
};

+ 2
- 2
extras/Jucer (experimental)/Source/Utility/jucer_StoredSettings.h View File

@@ -73,8 +73,6 @@ public:
const Image getFallbackImage();
const Drawable* getImageFileIcon();
//==============================================================================
juce_UseDebuggingNewOperator
private:
ScopedPointer<PropertiesFile> props;
@@ -82,6 +80,8 @@ private:
ScopedPointer<Drawable> imageFileIcon;
Image fallbackImage;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (StoredSettings);
};


+ 1
- 6
extras/Jucer (experimental)/Source/Utility/jucer_ValueSourceHelpers.h View File

@@ -41,8 +41,6 @@ public:
sourceValue.addListener (this);
}
~NumericValueSource() {}
void valueChanged (Value&) { sendChangeMessage (true); }
const var getValue() const { return (Type) sourceValue.getValue(); }
@@ -55,13 +53,10 @@ public:
}
//==============================================================================
juce_UseDebuggingNewOperator
protected:
Value sourceValue;
NumericValueSource (const NumericValueSource&);
const NumericValueSource& operator= (const NumericValueSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NumericValueSource);
};


+ 4
- 7
extras/audio plugin host/Source/GraphEditorPanel.h View File

@@ -65,14 +65,11 @@ public:
void endDraggingConnector (const MouseEvent& e);
//==============================================================================
juce_UseDebuggingNewOperator
private:
FilterGraph& graph;
ConnectorComponent* draggingConnector;
GraphEditorPanel (const GraphEditorPanel&);
GraphEditorPanel& operator= (const GraphEditorPanel&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GraphEditorPanel);
};
@@ -98,10 +95,8 @@ public:
//==============================================================================
void resized();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioDeviceManager* deviceManager;
AudioProcessorPlayer graphPlayer;
MidiKeyboardState keyState;
@@ -109,6 +104,8 @@ private:
GraphEditorPanel* graphPanel;
Component* keyboardComp;
Component* statusBar;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GraphDocumentComponent);
};
//==============================================================================


+ 3
- 2
extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp View File

@@ -403,14 +403,15 @@ public:
return true;
}
#endif
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
void* const hostWindow;
void* nsWindow;
JuceCustomUIView* const owner;
int titleW, titleH;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EditorCompWrapper);
};
};


+ 3
- 4
extras/audio plugins/wrapper/Standalone/juce_AudioFilterStreamer.h View File

@@ -58,12 +58,11 @@ public:
*/
void setFilter (AudioProcessor* filterToStream);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
ScopedPointer <AudioProcessorPlayer> player;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFilterStreamingDeviceManager);
};


+ 1
- 4
extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.h View File

@@ -74,8 +74,6 @@ public:
/** @internal */
void resized();
juce_UseDebuggingNewOperator
private:
ScopedPointer<AudioProcessor> filter;
ScopedPointer<AudioFilterStreamingDeviceManager> deviceManager;
@@ -83,8 +81,7 @@ private:
void deleteFilter();
StandaloneFilterWindow (const StandaloneFilterWindow&);
StandaloneFilterWindow& operator= (const StandaloneFilterWindow&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (StandaloneFilterWindow);
};
#endif // __JUCE_STANDALONEFILTERWINDOW_JUCEHEADER__

+ 5
- 5
extras/audio plugins/wrapper/VST/juce_VST_Wrapper.cpp View File

@@ -1374,17 +1374,15 @@ public:
}
#endif
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
JuceVSTWrapper& wrapper;
ScopedPointer<AudioProcessorEditor> editor;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EditorCompWrapper);
};
//==============================================================================
juce_UseDebuggingNewOperator
private:
AudioProcessor* filter;
JUCE_NAMESPACE::MemoryBlock chunkMemory;
@@ -1465,6 +1463,8 @@ private:
#else
HWND hostWindow;
#endif
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JuceVSTWrapper);
};
//==============================================================================


+ 2
- 2
extras/juce demo/Source/MainDemoWindow.cpp View File

@@ -450,8 +450,6 @@ public:
return true;
}
juce_UseDebuggingNewOperator
private:
//==============================================================================
MainDemoWindow* mainWindow;
@@ -486,6 +484,8 @@ private:
useNativeMenus = 0x200e,
goToKioskMode = 0x200f
};
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ContentComp);
};
//==============================================================================


+ 2
- 3
extras/juce demo/Source/demos/CodeEditorDemo.cpp View File

@@ -69,9 +69,6 @@ public:
fileChooser.setBounds (10, 10, getWidth() - 20, 25);
}
//==============================================================================
juce_UseDebuggingNewOperator
private:
// this is the document that the editor component is showing
CodeDocument codeDocument;
@@ -83,6 +80,8 @@ private:
ScopedPointer<CodeEditorComponent> editor;
FilenameComponent fileChooser;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CodeEditorDemo);
};


+ 2
- 5
extras/juce demo/Source/demos/DragAndDropDemo.cpp View File

@@ -231,14 +231,11 @@ public:
target.setBounds (getWidth() - 260, getHeight() - 160, 250, 150);
}
//==============================================================================
// (need to put this in to disambiguate the new/delete operators used in the
// two base classes).
juce_UseDebuggingNewOperator
private:
DragAndDropDemoSource source;
DragAndDropDemoTarget target;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DragAndDropDemo);
};


+ 2
- 3
extras/juce demo/Source/demos/InterprocessCommsDemo.cpp View File

@@ -294,9 +294,6 @@ public:
OwnedArray <DemoInterprocessConnection, CriticalSection> activeConnections;
//==============================================================================
juce_UseDebuggingNewOperator
private:
ComboBox modeSelector;
TextButton sendButton;
@@ -304,6 +301,8 @@ private:
Label modeLabel, pipeLabel, numberLabel, hostLabel;
ScopedPointer<DemoInterprocessConnectionServer> server;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (InterprocessCommsDemo);
};


+ 2
- 2
extras/juce demo/Source/demos/TableDemo.cpp View File

@@ -194,8 +194,6 @@ public:
table.setBoundsInset (BorderSize (8));
}
//==============================================================================
juce_UseDebuggingNewOperator
private:
TableListBox table; // the table component itself
@@ -311,6 +309,8 @@ private:
return String::empty;
}
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TableDemoComponent);
};


+ 13
- 10
extras/juce demo/Source/demos/ThreadingDemo.cpp View File

@@ -29,11 +29,6 @@
//==============================================================================
class BouncingBallComp : public Component
{
float x, y, size, dx, dy, w, h, parentWidth, parentHeight;
float innerX, innerY;
Colour colour;
Thread::ThreadID threadId;
public:
BouncingBallComp()
{
@@ -110,7 +105,13 @@ public:
repaint();
}
juce_UseDebuggingNewOperator
private:
float x, y, size, dx, dy, w, h, parentWidth, parentHeight;
float innerX, innerY;
Colour colour;
Thread::ThreadID threadId;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BouncingBallComp);
};
@@ -118,8 +119,6 @@ public:
class DemoThread : public BouncingBallComp,
public Thread
{
int interval;
public:
DemoThread()
: Thread ("Juce Demo Thread")
@@ -161,7 +160,10 @@ public:
}
}
juce_UseDebuggingNewOperator
private:
int interval;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DemoThread);
};
@@ -205,7 +207,8 @@ public:
// In this case there's no need to do anything here.
}
juce_UseDebuggingNewOperator
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DemoThreadPoolJob);
};
//==============================================================================


+ 2
- 2
extras/juce demo/Source/demos/TreeViewDemo.cpp View File

@@ -238,8 +238,6 @@ public:
}
}
juce_UseDebuggingNewOperator
private:
ScopedPointer <XmlElement> treeXml;
@@ -251,6 +249,8 @@ private:
TimeSliceThread thread;
TextButton typeButton;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TreeViewDemo);
};


+ 3
- 7
extras/juce demo/Source/demos/WebBrowserDemo.cpp View File

@@ -52,14 +52,10 @@ public:
return true;
}
//==============================================================================
juce_UseDebuggingNewOperator
private:
TextEditor& addressTextBox;
DemoBrowserComponent (DemoBrowserComponent&);
DemoBrowserComponent& operator= (const DemoBrowserComponent&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DemoBrowserComponent);
};
@@ -129,13 +125,13 @@ public:
webView->goToURL (addressTextBox.getText());
}
juce_UseDebuggingNewOperator
private:
ScopedPointer<DemoBrowserComponent> webView;
TextEditor addressTextBox;
TextButton goButton, backButton, forwardButton;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebBrowserDemo);
};


+ 2
- 2
extras/juce demo/Source/demos/WidgetsDemo.cpp View File

@@ -107,9 +107,9 @@ public:
{
}
void mouseDown (const MouseEvent&)
void mouseDown (const MouseEvent& e)
{
dragger.startDraggingComponent (this, 0);
dragger.startDraggingComponent (this, e, 0);
}
void mouseDrag (const MouseEvent& e)


+ 5
- 0
juce.h View File

@@ -61,6 +61,11 @@ BEGIN_JUCE_NAMESPACE
#pragma pack (pop)
#endif
#if JUCE_DLL
#undef JUCE_LEAK_DETECTOR(OwnerClass)
#define JUCE_LEAK_DETECTOR(OwnerClass)
#endif
END_JUCE_NAMESPACE


+ 4
- 3
juce_Config.h View File

@@ -274,10 +274,11 @@
#endif
//=============================================================================
/** JUCE_CHECK_MEMORY_LEAKS: Enables a memory-leak check when an app terminates.
(Currently, this only affects Windows builds in debug mode).
/** JUCE_CHECK_MEMORY_LEAKS: Enables a memory-leak check for certain objects when
the app terminates. See the LeakedObjectDetector class and the JUCE_LEAK_DETECTOR
macro for more details about enabling leak checking for specific classes.
*/
#ifndef JUCE_CHECK_MEMORY_LEAKS
#if JUCE_DEBUG && ! defined (JUCE_CHECK_MEMORY_LEAKS)
#define JUCE_CHECK_MEMORY_LEAKS 1
#endif


+ 257
- 527
juce_amalgamated.cpp
File diff suppressed because it is too large
View File


+ 729
- 971
juce_amalgamated.h
File diff suppressed because it is too large
View File


+ 1
- 5
src/application/juce_ApplicationCommandManager.h View File

@@ -313,9 +313,6 @@ public:
static ApplicationCommandTarget* findTargetForComponent (Component* component);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
OwnedArray <ApplicationCommandInfo> commands;
@@ -333,8 +330,7 @@ private:
virtual short getFirstCommandTarget() { return 0; }
#endif
ApplicationCommandManager (const ApplicationCommandManager&);
ApplicationCommandManager& operator= (const ApplicationCommandManager&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ApplicationCommandManager);
};


+ 2
- 5
src/application/juce_ApplicationCommandTarget.h View File

@@ -233,10 +233,8 @@ public:
*/
ApplicationCommandTarget* findFirstTargetParentComponent();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
// (for async invocation of commands)
class CommandTargetMessageInvoker : public MessageListener
{
@@ -258,8 +256,7 @@ private:
friend class CommandTargetMessageInvoker;
bool tryToInvoke (const InvocationInfo& info, bool async);
ApplicationCommandTarget (const ApplicationCommandTarget&);
ApplicationCommandTarget& operator= (const ApplicationCommandTarget&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ApplicationCommandTarget);
};


+ 2
- 6
src/application/juce_ApplicationProperties.h View File

@@ -144,9 +144,6 @@ public:
void closeFiles();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
ScopedPointer <PropertiesFile> userProps, commonProps;
@@ -156,10 +153,9 @@ private:
int commonSettingsAreReadOnly;
InterProcessLock* processLock;
ApplicationProperties (const ApplicationProperties&);
ApplicationProperties& operator= (const ApplicationProperties&);
void openFiles();
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ApplicationProperties);
};


+ 4
- 10
src/audio/audio_file_formats/juce_AiffAudioFormat.cpp View File

@@ -214,13 +214,10 @@ public:
return true;
}
juce_UseDebuggingNewOperator
private:
AiffAudioFormatReader (const AiffAudioFormatReader&);
AiffAudioFormatReader& operator= (const AiffAudioFormatReader&);
static inline int chunkName (const char* const name) { return (int) ByteOrder::littleEndianInt (name); }
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AiffAudioFormatReader);
};
//==============================================================================
@@ -285,8 +282,6 @@ public:
}
}
juce_UseDebuggingNewOperator
private:
MemoryBlock tempBlock;
uint32 lengthInSamples, bytesWritten;
@@ -295,9 +290,6 @@ private:
static inline int chunkName (const char* const name) { return (int) ByteOrder::littleEndianInt (name); }
AiffAudioFormatWriter (const AiffAudioFormatWriter&);
AiffAudioFormatWriter& operator= (const AiffAudioFormatWriter&);
void writeHeader()
{
const bool couldSeekOk = output->setPosition (headerPosition);
@@ -371,6 +363,8 @@ private:
jassert (output->getPosition() == headerLen);
}
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AiffAudioFormatWriter);
};
//==============================================================================


+ 2
- 2
src/audio/audio_file_formats/juce_AiffAudioFormat.h View File

@@ -66,8 +66,8 @@ public:
int qualityOptionIndex);
//==============================================================================
juce_UseDebuggingNewOperator
private:
JUCE_LEAK_DETECTOR (AiffAudioFormat);
};


+ 3
- 3
src/audio/audio_file_formats/juce_AudioCDBurner.h View File

@@ -157,15 +157,15 @@ public:
*/
void abortBurn();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioCDBurner (const int deviceIndex);
class Pimpl;
friend class ScopedPointer<Pimpl>;
ScopedPointer<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioCDBurner);
};


+ 2
- 5
src/audio/audio_file_formats/juce_AudioCDReader.h View File

@@ -159,10 +159,8 @@ public:
samplesPerFrame = 44100 / framesPerSecond
};
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
Array<int> trackStartSamples;
#if JUCE_MAC
@@ -185,8 +183,7 @@ private:
AudioCDReader();
#endif
AudioCDReader (const AudioCDReader&);
AudioCDReader& operator= (const AudioCDReader&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioCDReader);
};
#endif


+ 3
- 3
src/audio/audio_file_formats/juce_AudioFormatManager.h View File

@@ -133,12 +133,12 @@ public:
*/
AudioFormatReader* createReaderFor (InputStream* audioFileStream);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
OwnedArray<AudioFormat> knownFormats;
int defaultFormatIndex;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatManager);
};


+ 2
- 5
src/audio/audio_file_formats/juce_AudioFormatReader.h View File

@@ -216,10 +216,8 @@ public:
int numSamples) = 0;
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
/** Used by AudioFormatReader subclasses to copy data to different formats. */
template <class DestSampleType, class SourceSampleType, class SourceEndianness>
struct ReadHelper
@@ -248,8 +246,7 @@ protected:
private:
String formatName;
AudioFormatReader (const AudioFormatReader&);
AudioFormatReader& operator= (const AudioFormatReader&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatReader);
};


+ 2
- 5
src/audio/audio_file_formats/juce_AudioFormatWriter.h View File

@@ -192,10 +192,8 @@ public:
ScopedPointer<Buffer> buffer;
};
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
/** The sample rate of the stream. */
double sampleRate;
@@ -241,8 +239,7 @@ private:
String formatName;
friend class ThreadedWriter;
AudioFormatWriter (const AudioFormatWriter&);
AudioFormatWriter& operator= (const AudioFormatWriter&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatWriter);
};


+ 2
- 5
src/audio/audio_file_formats/juce_AudioSubsectionReader.h View File

@@ -78,16 +78,13 @@ public:
float& highestRight);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioFormatReader* const source;
int64 startSample, length;
const bool deleteSourceWhenDeleted;
AudioSubsectionReader (const AudioSubsectionReader&);
AudioSubsectionReader& operator= (const AudioSubsectionReader&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioSubsectionReader);
};
#endif // __JUCE_AUDIOSUBSECTIONREADER_JUCEHEADER__

+ 3
- 3
src/audio/audio_file_formats/juce_AudioThumbnail.h View File

@@ -164,10 +164,8 @@ public:
/** @internal */
void timerCallback();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioFormatManager& formatManagerToUse;
AudioThumbnailCache& cache;
ScopedPointer <InputSource> source;
@@ -194,6 +192,8 @@ private:
// returns true if more needs to be read
bool readNextBlockFromAudioFile (AudioFormatReader& reader);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioThumbnail);
};


+ 1
- 1
src/audio/audio_file_formats/juce_AudioThumbnailCache.cpp View File

@@ -39,7 +39,7 @@ struct ThumbnailCacheEntry
uint32 lastUsed;
MemoryBlock data;
juce_UseDebuggingNewOperator
JUCE_LEAK_DETECTOR (ThumbnailCacheEntry);
};
//==============================================================================


+ 2
- 3
src/audio/audio_file_formats/juce_AudioThumbnailCache.h View File

@@ -75,9 +75,6 @@ public:
void storeThumb (const AudioThumbnail& thumb, int64 hashCode);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
OwnedArray <ThumbnailCacheEntry> thumbs;
@@ -86,6 +83,8 @@ private:
friend class AudioThumbnail;
void addThumbnail (AudioThumbnail* thumb);
void removeThumbnail (AudioThumbnail* thumb);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioThumbnailCache);
};


+ 2
- 8
src/audio/audio_file_formats/juce_FlacAudioFormat.cpp View File

@@ -297,16 +297,13 @@ public:
{
}
juce_UseDebuggingNewOperator
private:
FlacNamespace::FLAC__StreamDecoder* decoder;
AudioSampleBuffer reservoir;
int reservoirStart, samplesInReservoir;
bool ok, scanningForLength;
FlacReader (const FlacReader&);
FlacReader& operator= (const FlacReader&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FlacReader);
};
@@ -470,15 +467,12 @@ public:
static_cast <FlacWriter*> (client_data)->writeMetaData (metadata);
}
juce_UseDebuggingNewOperator
bool ok;
private:
FlacNamespace::FLAC__StreamEncoder* encoder;
FlacWriter (const FlacWriter&);
FlacWriter& operator= (const FlacWriter&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FlacWriter);
};


+ 2
- 2
src/audio/audio_file_formats/juce_FlacAudioFormat.h View File

@@ -66,8 +66,8 @@ public:
const StringPairArray& metadataValues,
int qualityOptionIndex);
//==============================================================================
juce_UseDebuggingNewOperator
private:
JUCE_LEAK_DETECTOR (FlacAudioFormat);
};


+ 4
- 2
src/audio/audio_file_formats/juce_OggVorbisAudioFormat.cpp View File

@@ -241,7 +241,8 @@ public:
return (long) static_cast <InputStream*> (datasource)->getPosition();
}
juce_UseDebuggingNewOperator
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OggReader);
};
//==============================================================================
@@ -389,7 +390,8 @@ public:
return true;
}
juce_UseDebuggingNewOperator
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OggWriter);
};


+ 2
- 2
src/audio/audio_file_formats/juce_OggVorbisAudioFormat.h View File

@@ -79,8 +79,8 @@ public:
const StringPairArray& metadataValues,
int qualityOptionIndex);
//==============================================================================
juce_UseDebuggingNewOperator
private:
JUCE_LEAK_DETECTOR (OggVorbisAudioFormat);
};


+ 1
- 4
src/audio/audio_file_formats/juce_QuickTimeAudioFormat.cpp View File

@@ -305,8 +305,6 @@ public:
return ok;
}
juce_UseDebuggingNewOperator
bool ok;
private:
@@ -341,8 +339,7 @@ private:
#endif
}
QTAudioReader (const QTAudioReader&);
QTAudioReader& operator= (const QTAudioReader&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (QTAudioReader);
};


+ 2
- 2
src/audio/audio_file_formats/juce_QuickTimeAudioFormat.h View File

@@ -67,8 +67,8 @@ public:
int qualityOptionIndex);
//==============================================================================
juce_UseDebuggingNewOperator
private:
JUCE_LEAK_DETECTOR (QuickTimeAudioFormat);
};


+ 2
- 8
src/audio/audio_file_formats/juce_WavAudioFormat.cpp View File

@@ -428,8 +428,6 @@ public:
int64 bwavChunkStart, bwavSize;
juce_UseDebuggingNewOperator
private:
ScopedPointer<AudioData::Converter> converter;
int bytesPerFrame;
@@ -437,8 +435,7 @@ private:
static inline int chunkName (const char* const name) { return (int) ByteOrder::littleEndianInt (name); }
WavAudioFormatReader (const WavAudioFormatReader&);
WavAudioFormatReader& operator= (const WavAudioFormatReader&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WavAudioFormatReader);
};
//==============================================================================
@@ -514,8 +511,6 @@ public:
}
}
juce_UseDebuggingNewOperator
private:
ScopedPointer<AudioData::Converter> converter;
MemoryBlock tempBlock, bwavChunk, smplChunk;
@@ -570,8 +565,7 @@ private:
usesFloatingPointData = (bitsPerSample == 32);
}
WavAudioFormatWriter (const WavAudioFormatWriter&);
WavAudioFormatWriter& operator= (const WavAudioFormatWriter&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WavAudioFormatWriter);
};
//==============================================================================


+ 3
- 2
src/audio/audio_file_formats/juce_WavAudioFormat.h View File

@@ -143,8 +143,9 @@ public:
*/
bool replaceMetadataInFile (const File& wavFile, const StringPairArray& newMetadata);
//==============================================================================
juce_UseDebuggingNewOperator
private:
JUCE_LEAK_DETECTOR (WavAudioFormat);
};


+ 2
- 6
src/audio/audio_sources/juce_AudioFormatReaderSource.h View File

@@ -91,11 +91,8 @@ public:
/** Implements the PositionableAudioSource method. */
int getTotalLength() const;
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioFormatReader* reader;
bool deleteReader;
@@ -104,8 +101,7 @@ private:
void readBufferSection (int start, int length, AudioSampleBuffer& buffer, int startSample);
AudioFormatReaderSource (const AudioFormatReaderSource&);
AudioFormatReaderSource& operator= (const AudioFormatReaderSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatReaderSource);
};


+ 1
- 5
src/audio/audio_sources/juce_AudioSourcePlayer.h View File

@@ -98,9 +98,6 @@ public:
/** Implementation of the AudioIODeviceCallback method. */
void audioDeviceStopped();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
CriticalSection readLock;
@@ -113,8 +110,7 @@ private:
AudioSampleBuffer tempBuffer;
float lastGain, gain;
AudioSourcePlayer (const AudioSourcePlayer&);
AudioSourcePlayer& operator= (const AudioSourcePlayer&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioSourcePlayer);
};


+ 2
- 5
src/audio/audio_sources/juce_AudioTransportSource.h View File

@@ -156,10 +156,8 @@ public:
/** Implements the PositionableAudioSource method. */
bool isLooping() const;
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
PositionableAudioSource* source;
ResamplingAudioSource* resamplerSource;
BufferingAudioSource* bufferingSource;
@@ -173,8 +171,7 @@ private:
int blockSize, readAheadBufferSize;
bool isPrepared, inputStreamEOF;
AudioTransportSource (const AudioTransportSource&);
AudioTransportSource& operator= (const AudioTransportSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioTransportSource);
};


+ 1
- 5
src/audio/audio_sources/juce_BufferingAudioSource.h View File

@@ -86,9 +86,6 @@ public:
/** Implements the PositionableAudioSource method. */
bool isLooping() const { return source->isLooping(); }
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
PositionableAudioSource* source;
@@ -104,8 +101,7 @@ private:
bool readNextBufferChunk();
void readBufferSection (int start, int length, int bufferOffset);
BufferingAudioSource (const BufferingAudioSource&);
BufferingAudioSource& operator= (const BufferingAudioSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BufferingAudioSource);
};


+ 2
- 5
src/audio/audio_sources/juce_ChannelRemappingAudioSource.h View File

@@ -133,10 +133,8 @@ public:
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
int requiredNumberOfChannels;
Array <int> remappedInputs, remappedOutputs;
@@ -148,8 +146,7 @@ private:
CriticalSection lock;
ChannelRemappingAudioSource (const ChannelRemappingAudioSource&);
ChannelRemappingAudioSource& operator= (const ChannelRemappingAudioSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChannelRemappingAudioSource);
};


+ 1
- 5
src/audio/audio_sources/juce_IIRFilterAudioSource.h View File

@@ -62,17 +62,13 @@ public:
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioSource* const input;
const bool deleteInputWhenDeleted;
OwnedArray <IIRFilter> iirFilters;
IIRFilterAudioSource (const IIRFilterAudioSource&);
IIRFilterAudioSource& operator= (const IIRFilterAudioSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (IIRFilterAudioSource);
};


+ 1
- 5
src/audio/audio_sources/juce_MixerAudioSource.h View File

@@ -104,9 +104,6 @@ public:
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
Array <AudioSource*> inputs;
@@ -116,8 +113,7 @@ private:
double currentSampleRate;
int bufferSizeExpected;
MixerAudioSource (const MixerAudioSource&);
MixerAudioSource& operator= (const MixerAudioSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MixerAudioSource);
};


+ 2
- 5
src/audio/audio_sources/juce_ResamplingAudioSource.h View File

@@ -75,10 +75,8 @@ public:
void releaseResources();
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioSource* const input;
const bool deleteInputWhenDeleted;
double ratio, lastRatio;
@@ -103,8 +101,7 @@ private:
void applyFilter (float* samples, int num, FilterState& fs);
ResamplingAudioSource (const ResamplingAudioSource&);
ResamplingAudioSource& operator= (const ResamplingAudioSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ResamplingAudioSource);
};


+ 1
- 5
src/audio/audio_sources/juce_ToneGeneratorAudioSource.h View File

@@ -63,17 +63,13 @@ public:
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
double frequency, sampleRate;
double currentPhase, phasePerSample;
float amplitude;
ToneGeneratorAudioSource (const ToneGeneratorAudioSource&);
ToneGeneratorAudioSource& operator= (const ToneGeneratorAudioSource&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ToneGeneratorAudioSource);
};


+ 1
- 5
src/audio/devices/juce_AudioDeviceManager.h View File

@@ -441,9 +441,6 @@ public:
*/
CriticalSection& getMidiCallbackLock() throw() { return midiCallbackLock; }
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
OwnedArray <AudioIODeviceType> availableDeviceTypes;
@@ -522,8 +519,7 @@ private:
AudioIODeviceType* findType (const String& inputName, const String& outputName);
AudioDeviceManager (const AudioDeviceManager&);
AudioDeviceManager& operator= (const AudioDeviceManager&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioDeviceManager);
};
#endif // __JUCE_AUDIODEVICEMANAGER_JUCEHEADER__

+ 3
- 5
src/audio/devices/juce_MidiInput.h View File

@@ -170,18 +170,16 @@ public:
*/
virtual void stop();
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
String name;
void* internal;
explicit MidiInput (const String& name);
private:
MidiInput (const MidiInput&);
MidiInput& operator= (const MidiInput&);
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiInput);
};


+ 2
- 7
src/audio/devices/juce_MidiOutput.h View File

@@ -148,10 +148,8 @@ public:
virtual void stopBackgroundThread();
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
void* internal;
struct PendingMessage
@@ -160,8 +158,6 @@ protected:
MidiMessage message;
PendingMessage* next;
juce_UseDebuggingNewOperator
};
CriticalSection lock;
@@ -171,8 +167,7 @@ protected:
void run();
private:
MidiOutput (const MidiOutput&);
MidiOutput& operator= (const MidiOutput&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiOutput);
};


+ 3
- 3
src/audio/dsp/juce_AudioSampleBuffer.h View File

@@ -420,10 +420,8 @@ public:
int startSample,
int numSamples) const;
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
int numChannels, size;
size_t allocatedBytes;
float** channels;
@@ -432,6 +430,8 @@ private:
void allocateData();
void allocateChannels (float** dataToReferTo);
JUCE_LEAK_DETECTOR (AudioSampleBuffer);
};


+ 2
- 4
src/audio/dsp/juce_IIRFilter.h View File

@@ -131,11 +131,8 @@ public:
void copyCoefficientsFrom (const IIRFilter& other) throw();
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
CriticalSection processLock;
void setCoefficients (double c1, double c2, double c3,
@@ -147,6 +144,7 @@ protected:
// (use the copyCoefficientsFrom() method instead of this operator)
IIRFilter& operator= (const IIRFilter&);
JUCE_LEAK_DETECTOR (IIRFilter);
};


+ 4
- 7
src/audio/midi/juce_MidiBuffer.h View File

@@ -213,10 +213,8 @@ public:
int& numBytesOfMidiData,
int& samplePosition) throw();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
const MidiBuffer& buffer;
const uint8* data;
@@ -224,11 +222,8 @@ public:
Iterator& operator= (const Iterator&);
};
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
friend class MidiBuffer::Iterator;
MemoryBlock data;
int bytesUsed;
@@ -238,6 +233,8 @@ private:
static int getEventTime (const void* d) throw();
static uint16 getEventDataSize (const void* d) throw();
static uint16 getEventTotalSize (const void* d) throw();
JUCE_LEAK_DETECTOR (MidiBuffer);
};


+ 3
- 6
src/audio/midi/juce_MidiFile.h View File

@@ -174,18 +174,15 @@ public:
void convertTimestampTicksToSeconds();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
OwnedArray <MidiMessageSequence> tracks;
short timeFormat;
MidiFile (const MidiFile&);
MidiFile& operator= (const MidiFile&);
void readNextTrack (const uint8* data, int size);
void writeTrack (OutputStream& mainOut, int trackNum);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiFile);
};


+ 2
- 5
src/audio/midi/juce_MidiKeyboardState.h View File

@@ -194,10 +194,8 @@ public:
*/
void removeListener (MidiKeyboardStateListener* listener);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
CriticalSection lock;
uint16 noteStates [128];
MidiBuffer eventsToAdd;
@@ -206,8 +204,7 @@ private:
void noteOnInternal (int midiChannel, int midiNoteNumber, float velocity);
void noteOffInternal (int midiChannel, int midiNoteNumber);
MidiKeyboardState (const MidiKeyboardState&);
MidiKeyboardState& operator= (const MidiKeyboardState&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiKeyboardState);
};


+ 1
- 4
src/audio/midi/juce_MidiMessage.h View File

@@ -890,11 +890,8 @@ public:
*/
static const String getControllerName (int controllerNumber);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
double timeStamp;
uint8* data;
int size;


+ 2
- 5
src/audio/midi/juce_MidiMessageCollector.h View File

@@ -91,17 +91,14 @@ public:
/** @internal */
void handleIncomingMidiMessage (MidiInput* source, const MidiMessage& message);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
double lastCallbackTime;
CriticalSection midiCallbackLock;
MidiBuffer incomingMessages;
double sampleRate;
MidiMessageCollector (const MidiMessageCollector&);
MidiMessageCollector& operator= (const MidiMessageCollector&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiMessageCollector);
};


+ 4
- 6
src/audio/midi/juce_MidiMessageSequence.h View File

@@ -84,13 +84,11 @@ public:
*/
MidiEventHolder* noteOffObject;
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
friend class MidiMessageSequence;
MidiEventHolder (const MidiMessage& message);
JUCE_LEAK_DETECTOR (MidiEventHolder);
};
//==============================================================================
@@ -268,8 +266,6 @@ public:
void swapWith (MidiMessageSequence& other) throw();
//==============================================================================
juce_UseDebuggingNewOperator
/** @internal */
static int compareElements (const MidiMessageSequence::MidiEventHolder* first,
const MidiMessageSequence::MidiEventHolder* second) throw();
@@ -280,6 +276,8 @@ private:
OwnedArray <MidiEventHolder> list;
void sort();
JUCE_LEAK_DETECTOR (MidiMessageSequence);
};


+ 2
- 5
src/audio/plugins/formats/juce_AudioUnitPluginFormat.h View File

@@ -51,12 +51,9 @@ public:
bool doesPluginStillExist (const PluginDescription& desc);
const FileSearchPath getDefaultLocationsToSearch();
//==============================================================================
juce_UseDebuggingNewOperator
private:
AudioUnitPluginFormat (const AudioUnitPluginFormat&);
AudioUnitPluginFormat& operator= (const AudioUnitPluginFormat&);
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioUnitPluginFormat);
};
#endif


+ 6
- 6
src/audio/plugins/formats/juce_AudioUnitPluginFormat.mm View File

@@ -265,10 +265,8 @@ public:
void setStateInformation (const void* data, int sizeInBytes);
void setCurrentProgramStateInformation (const void* data, int sizeInBytes);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
friend class AudioUnitPluginWindowCarbon;
friend class AudioUnitPluginWindowCocoa;
friend class AudioUnitPluginFormat;
@@ -404,6 +402,8 @@ private:
//==============================================================================
AudioUnitPluginInstance (const String& fileOrIdentifier);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioUnitPluginInstance);
};
//==============================================================================
@@ -1080,10 +1080,8 @@ public:
}
}
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
AudioUnitPluginInstance& plugin;
ComponentRecord* componentRecord;
AudioUnitCarbonView viewComponent;
@@ -1138,6 +1136,8 @@ private:
friend class InnerWrapperComponent;
ScopedPointer<InnerWrapperComponent> innerWrapper;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioUnitPluginWindowCarbon);
};
#endif


+ 1
- 5
src/audio/plugins/formats/juce_DirectXPluginFormat.h View File

@@ -53,12 +53,8 @@ public:
const String getNameOfPluginFromIdentifier (const String& fileOrIdentifier) { return fileOrIdentifier; }
const FileSearchPath getDefaultLocationsToSearch();
//==============================================================================
juce_UseDebuggingNewOperator
private:
DirectXPluginFormat (const DirectXPluginFormat&);
DirectXPluginFormat& operator= (const DirectXPluginFormat&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DirectXPluginFormat);
};
#endif


+ 1
- 5
src/audio/plugins/formats/juce_LADSPAPluginFormat.h View File

@@ -53,12 +53,8 @@ public:
const String getNameOfPluginFromIdentifier (const String& fileOrIdentifier) { return fileOrIdentifier; }
const FileSearchPath getDefaultLocationsToSearch();
//==============================================================================
juce_UseDebuggingNewOperator
private:
LADSPAPluginFormat (const LADSPAPluginFormat&);
LADSPAPluginFormat& operator= (const LADSPAPluginFormat&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LADSPAPluginFormat);
};
#endif


+ 8
- 8
src/audio/plugins/formats/juce_VSTPluginFormat.cpp View File

@@ -425,9 +425,6 @@ public:
close();
}
//==============================================================================
juce_UseDebuggingNewOperator
//==============================================================================
#if JUCE_WINDOWS || JUCE_LINUX
void* hModule;
@@ -682,6 +679,9 @@ public:
#endif
#endif
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ModuleHandle);
};
//==============================================================================
@@ -783,10 +783,8 @@ public:
void handleAsyncUpdate();
VstIntPtr handleCallback (VstInt32 opcode, VstInt32 index, VstInt32 value, void *ptr, float opt);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
friend class VSTPluginWindow;
friend class VSTPluginFormat;
@@ -828,6 +826,7 @@ private:
void setPower (const bool on);
VSTPluginInstance (const ReferenceCountedObjectPtr <ModuleHandle>& module);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginInstance);
};
//==============================================================================
@@ -1367,8 +1366,6 @@ public:
}
//==============================================================================
juce_UseDebuggingNewOperator
private:
VSTPluginInstance& plugin;
bool isOpen, wasShowing, recursiveResize;
@@ -1880,6 +1877,9 @@ private:
innerWrapper->setSize (getWidth(), getHeight());
}
#endif
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginWindow);
};
//==============================================================================


+ 3
- 6
src/audio/plugins/formats/juce_VSTPluginFormat.h View File

@@ -52,14 +52,11 @@ public:
bool doesPluginStillExist (const PluginDescription& desc);
const FileSearchPath getDefaultLocationsToSearch();
//==============================================================================
juce_UseDebuggingNewOperator
private:
VSTPluginFormat (const VSTPluginFormat&);
VSTPluginFormat& operator= (const VSTPluginFormat&);
//==============================================================================
void recursiveFileSearch (StringArray& results, const File& dir, const bool recursive);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginFormat);
};


+ 2
- 6
src/audio/plugins/juce_AudioPluginFormat.h View File

@@ -105,15 +105,11 @@ public:
virtual const FileSearchPath getDefaultLocationsToSearch() = 0;
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
AudioPluginFormat() throw();
AudioPluginFormat (const AudioPluginFormat&);
AudioPluginFormat& operator= (const AudioPluginFormat&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioPluginFormat);
};


+ 2
- 5
src/audio/plugins/juce_AudioPluginFormatManager.h View File

@@ -92,14 +92,11 @@ public:
*/
bool doesPluginStillExist (const PluginDescription& description) const;
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
OwnedArray <AudioPluginFormat> formats;
AudioPluginFormatManager (const AudioPluginFormatManager&);
AudioPluginFormatManager& operator= (const AudioPluginFormatManager&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioPluginFormatManager);
};


+ 2
- 5
src/audio/plugins/juce_AudioPluginInstance.h View File

@@ -62,14 +62,11 @@ public:
*/
virtual void* getPlatformSpecificData();
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
AudioPluginInstance();
AudioPluginInstance (const AudioPluginInstance&);
AudioPluginInstance& operator= (const AudioPluginInstance&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioPluginInstance);
};


+ 2
- 5
src/audio/plugins/juce_KnownPluginList.h View File

@@ -157,14 +157,11 @@ public:
void recreateFromXml (const XmlElement& xml);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
OwnedArray <PluginDescription> types;
KnownPluginList (const KnownPluginList&);
KnownPluginList& operator= (const KnownPluginList&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (KnownPluginList);
};


+ 2
- 1
src/audio/plugins/juce_PluginDescription.h View File

@@ -137,8 +137,9 @@ public:
bool loadFromXml (const XmlElement& xml);
private:
//==============================================================================
juce_UseDebuggingNewOperator
JUCE_LEAK_DETECTOR (PluginDescription);
};


+ 2
- 5
src/audio/plugins/juce_PluginDirectoryScanner.h View File

@@ -105,10 +105,8 @@ public:
*/
const StringArray& getFailedFiles() const throw() { return failedFiles; }
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
KnownPluginList& list;
AudioPluginFormat& format;
StringArray filesOrIdentifiersToScan;
@@ -120,8 +118,7 @@ private:
const StringArray getDeadMansPedalFile();
void setDeadMansPedalFile (const StringArray& newContents);
PluginDirectoryScanner (const PluginDirectoryScanner&);
PluginDirectoryScanner& operator= (const PluginDirectoryScanner&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PluginDirectoryScanner);
};


+ 2
- 5
src/audio/plugins/juce_PluginListComponent.h View File

@@ -80,10 +80,8 @@ public:
/** @internal */
void timerCallback();
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
KnownPluginList& list;
File deadMansPedalFile;
ListBox listBox;
@@ -93,8 +91,7 @@ private:
void scanFor (AudioPluginFormat* format);
PluginListComponent (const PluginListComponent&);
PluginListComponent& operator= (const PluginListComponent&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PluginListComponent);
};


+ 1
- 5
src/audio/processors/juce_AudioProcessor.h View File

@@ -552,9 +552,6 @@ public:
double sampleRate,
int blockSize) throw();
//==============================================================================
juce_UseDebuggingNewOperator
protected:
//==============================================================================
/** Helper function that just converts an xml element into a binary blob.
@@ -593,8 +590,7 @@ private:
BigInteger changingParams;
#endif
AudioProcessor (const AudioProcessor&);
AudioProcessor& operator= (const AudioProcessor&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioProcessor);
};


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save