mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
LibVT: Use NNOP<KString> to store window titles in the Kernel
This will allow us to eventually propagate allocation failure.
This commit is contained in:
parent
c8db8d6152
commit
5b572393a9
3 changed files with 24 additions and 3 deletions
|
@ -9,7 +9,6 @@
|
|||
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/NonnullOwnPtrVector.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/API/KeyCode.h>
|
||||
#include <LibVT/CharacterSet.h>
|
||||
|
@ -17,6 +16,7 @@
|
|||
#include <LibVT/Position.h>
|
||||
|
||||
#ifndef KERNEL
|
||||
# include <AK/String.h>
|
||||
# include <LibVT/Attribute.h>
|
||||
# include <LibVT/Line.h>
|
||||
#else
|
||||
|
@ -435,8 +435,13 @@ protected:
|
|||
Attribute m_current_attribute;
|
||||
Attribute m_saved_attribute;
|
||||
|
||||
#ifdef KERNEL
|
||||
OwnPtr<Kernel::KString> m_current_window_title;
|
||||
NonnullOwnPtrVector<Kernel::KString> m_title_stack;
|
||||
#else
|
||||
String m_current_window_title;
|
||||
Vector<String> m_title_stack;
|
||||
#endif
|
||||
|
||||
#ifndef KERNEL
|
||||
u32 m_next_href_id { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue