BFont doesn't have a destructor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1629 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -140,9 +140,11 @@ class BFontPrivate;
|
||||
class BFont {
|
||||
public:
|
||||
BFont(void);
|
||||
BFont(const BFont &font);
|
||||
BFont(const BFont *font);
|
||||
BFont(const BFont &font);
|
||||
BFont(const BFont *font);
|
||||
/* /* XXX TODO: R5 doesn't have a destructor, so we get linking errors when objects compiled with old headers with the new library
|
||||
~BFont(void);
|
||||
*/
|
||||
|
||||
status_t SetFamilyAndStyle(const font_family family,
|
||||
const font_style style);
|
||||
|
||||
@@ -135,10 +135,13 @@ BFont::BFont(const BFont *font)
|
||||
|
||||
}
|
||||
|
||||
/* XXX TODO: R5 doesn't have a destructor, so we get linking errors when objects compiled with old headers with the new library
|
||||
(but now we leak memory here)
|
||||
BFont::~BFont(void)
|
||||
{
|
||||
delete private_data;
|
||||
}
|
||||
*/
|
||||
|
||||
status_t BFont::SetFamilyAndStyle(const font_family family, const font_style style)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user