1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

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.

This commit is contained in:
Julian Storer 2010-11-29 12:24:55 +00:00
parent 1629f9f66a
commit a5cf4030f5
374 changed files with 2064 additions and 3331 deletions

View file

@ -183,15 +183,12 @@ public:
}
}
juce_UseDebuggingNewOperator
private:
KeyMappingEditorComponent& owner;
const CommandID commandID;
const int keyNum;
ChangeKeyButton (const ChangeKeyButton&);
ChangeKeyButton& operator= (const ChangeKeyButton&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChangeKeyButton);
};
//==============================================================================
@ -247,8 +244,6 @@ public:
}
}
juce_UseDebuggingNewOperator
private:
KeyMappingEditorComponent& owner;
OwnedArray<ChangeKeyButton> keyChangeButtons;
@ -256,8 +251,7 @@ private:
enum { maxNumAssignments = 3 };
ItemComponent (const ItemComponent&);
ItemComponent& operator= (const ItemComponent&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ItemComponent);
};
//==============================================================================
@ -278,14 +272,11 @@ public:
return new ItemComponent (owner, commandID);
}
juce_UseDebuggingNewOperator
private:
KeyMappingEditorComponent& owner;
const CommandID commandID;
MappingItem (const MappingItem&);
MappingItem& operator= (const MappingItem&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MappingItem);
};
@ -333,14 +324,11 @@ public:
}
}
juce_UseDebuggingNewOperator
private:
KeyMappingEditorComponent& owner;
String categoryName;
CategoryItem (const CategoryItem&);
CategoryItem& operator= (const CategoryItem&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CategoryItem);
};
//==============================================================================