1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +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

@ -66,8 +66,9 @@ public:
/** This is a handy method for checking whether a string is a c++ reserved keyword. */
static bool isReservedKeyword (const String& token) throw();
private:
//==============================================================================
juce_UseDebuggingNewOperator
JUCE_LEAK_DETECTOR (CPlusPlusCodeTokeniser);
};

View file

@ -378,10 +378,8 @@ public:
int line, position;
};
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
friend class CodeDocumentInsertAction;
friend class CodeDocumentDeleteAction;
friend class Iterator;
@ -401,8 +399,7 @@ private:
void remove (int startPos, int endPos, bool undoable);
void checkLastLineStatus();
CodeDocument (const CodeDocument&);
CodeDocument& operator= (const CodeDocument&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CodeDocument);
};

View file

@ -255,10 +255,8 @@ public:
/** @internal */
bool isTextInputActive() const;
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
CodeDocument& document;
Font font;
@ -309,8 +307,7 @@ private:
int indexToColumn (int line, int index) const throw();
int columnToIndex (int line, int column) const throw();
CodeEditorComponent (const CodeEditorComponent&);
CodeEditorComponent& operator= (const CodeEditorComponent&);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CodeEditorComponent);
};

View file

@ -63,8 +63,9 @@ public:
virtual const Colour getDefaultColour (int tokenType) = 0;
private:
//==============================================================================
juce_UseDebuggingNewOperator
JUCE_LEAK_DETECTOR (CodeTokeniser);
};