mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-02 16:25:34 +03:00
AK: Fix typo in the WeakPtr test. Behavior was actually correct.
Also remove an unused variable.
This commit is contained in:
parent
4e59300650
commit
31793b8f3a
Notes:
sideshowbarker
2024-07-19 12:56:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/31793b8f3aa
@ -3,10 +3,6 @@
|
||||
#include <AK/Weakable.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
|
||||
namespace AK{
|
||||
int g_weaklinks = 0;
|
||||
}
|
||||
|
||||
class SimpleWeakable : public Weakable<SimpleWeakable> {
|
||||
public:
|
||||
SimpleWeakable() {}
|
||||
@ -49,7 +45,7 @@ TEST_CASE(weakptr_move)
|
||||
EXPECT_EQ(weak2.ptr(), &simple);
|
||||
}
|
||||
|
||||
EXPECT_EQ(weak2.is_null(), false);
|
||||
EXPECT_EQ(weak2.is_null(), true);
|
||||
|
||||
fprintf(stderr, "ok\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user