mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
AK: Override StringImpl's operator delete to silence valgrind.
This commit is contained in:
parent
92cda74724
commit
4ee39d6292
1 changed files with 9 additions and 3 deletions
|
@ -1,8 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "RetainPtr.h"
|
#include <AK/RetainPtr.h>
|
||||||
#include "Retainable.h"
|
#include <AK/Retainable.h>
|
||||||
#include "Types.h"
|
#include <AK/Types.h>
|
||||||
|
#include <AK/kmalloc.h>
|
||||||
|
|
||||||
namespace AK {
|
namespace AK {
|
||||||
|
|
||||||
|
@ -19,6 +20,11 @@ public:
|
||||||
Retained<StringImpl> to_lowercase() const;
|
Retained<StringImpl> to_lowercase() const;
|
||||||
Retained<StringImpl> to_uppercase() const;
|
Retained<StringImpl> to_uppercase() const;
|
||||||
|
|
||||||
|
void operator delete(void* ptr)
|
||||||
|
{
|
||||||
|
kfree(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
static StringImpl& the_empty_stringimpl();
|
static StringImpl& the_empty_stringimpl();
|
||||||
|
|
||||||
~StringImpl();
|
~StringImpl();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue