mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +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:
parent
1629f9f66a
commit
a5cf4030f5
374 changed files with 2064 additions and 3331 deletions
|
|
@ -35,12 +35,6 @@ BEGIN_JUCE_NAMESPACE
|
|||
class TextLayout::Token
|
||||
{
|
||||
public:
|
||||
String text;
|
||||
Font font;
|
||||
int x, y, w, h;
|
||||
int line, lineHeight;
|
||||
bool isWhitespace, isNewLine;
|
||||
|
||||
Token (const String& t,
|
||||
const Font& f,
|
||||
const bool isWhitespace_)
|
||||
|
|
@ -69,10 +63,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~Token()
|
||||
{
|
||||
}
|
||||
|
||||
void draw (Graphics& g,
|
||||
const int xOffset,
|
||||
const int yOffset)
|
||||
|
|
@ -87,7 +77,14 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
String text;
|
||||
Font font;
|
||||
int x, y, w, h;
|
||||
int line, lineHeight;
|
||||
bool isWhitespace, isNewLine;
|
||||
|
||||
private:
|
||||
JUCE_LEAK_DETECTOR (Token);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue