mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -8,20 +8,20 @@
|
|||
|
||||
#include "CodeDocument.h"
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace HackStudio {
|
||||
|
||||
class ProjectFile : public RefCounted<ProjectFile> {
|
||||
public:
|
||||
static NonnullRefPtr<ProjectFile> construct_with_name(String const& name)
|
||||
static NonnullRefPtr<ProjectFile> construct_with_name(DeprecatedString const& name)
|
||||
{
|
||||
return adopt_ref(*new ProjectFile(name));
|
||||
}
|
||||
|
||||
String const& name() const { return m_name; }
|
||||
DeprecatedString const& name() const { return m_name; }
|
||||
bool could_render_text() const { return m_could_render_text; }
|
||||
|
||||
GUI::TextDocument& document() const;
|
||||
|
@ -33,10 +33,10 @@ public:
|
|||
void horizontal_scroll_value(int);
|
||||
|
||||
private:
|
||||
explicit ProjectFile(String const& name);
|
||||
explicit ProjectFile(DeprecatedString const& name);
|
||||
void create_document_if_needed() const;
|
||||
|
||||
String m_name;
|
||||
DeprecatedString m_name;
|
||||
mutable RefPtr<CodeDocument> m_document;
|
||||
mutable bool m_could_render_text { false };
|
||||
int m_vertical_scroll_value { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue