mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
Integrate ext2 from VFS into Kernel.
This commit is contained in:
parent
aec8ab0a60
commit
9171521752
45 changed files with 662 additions and 1085 deletions
10
AK/String.h
10
AK/String.h
|
@ -5,7 +5,7 @@
|
|||
#include "StringImpl.h"
|
||||
#include "Traits.h"
|
||||
#include "Vector.h"
|
||||
#include <cstdio>
|
||||
#include "kstdio.h"
|
||||
|
||||
namespace AK {
|
||||
|
||||
|
@ -20,7 +20,7 @@ public:
|
|||
}
|
||||
|
||||
String(String&& other)
|
||||
: m_impl(std::move(other.m_impl))
|
||||
: m_impl(move(other.m_impl))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
}
|
||||
|
||||
String(RetainPtr<StringImpl>&& impl)
|
||||
: m_impl(std::move(impl))
|
||||
: m_impl(move(impl))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ public:
|
|||
String& operator=(String&& other)
|
||||
{
|
||||
if (this != &other) {
|
||||
m_impl = std::move(other.m_impl);
|
||||
m_impl = move(other.m_impl);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ private:
|
|||
template<>
|
||||
struct Traits<String> {
|
||||
static unsigned hash(const String& s) { return s.impl() ? s.impl()->hash() : 0; }
|
||||
static void dump(const String& s) { printf("%s", s.characters()); }
|
||||
static void dump(const String& s) { kprintf("%s", s.characters()); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue