Run clang-format
This commit is contained in:
@@ -1,23 +1,13 @@
|
||||
class X
|
||||
{
|
||||
class X {
|
||||
private:
|
||||
int* data;
|
||||
int* data;
|
||||
|
||||
public:
|
||||
X():
|
||||
data(new int[1000000])
|
||||
{}
|
||||
~X()
|
||||
{
|
||||
delete [] data;
|
||||
}
|
||||
X(const X& other):
|
||||
data(new int[1000000])
|
||||
{
|
||||
std::copy(other.data,other.data+1000000,data);
|
||||
}
|
||||
X(X&& other):
|
||||
data(other.data)
|
||||
{
|
||||
other.data=nullptr;
|
||||
}
|
||||
X() : data(new int[1000000]) {}
|
||||
~X() { delete[] data; }
|
||||
X(const X& other) : data(new int[1000000])
|
||||
{
|
||||
std::copy(other.data, other.data + 1000000, data);
|
||||
}
|
||||
X(X&& other) : data(other.data) { other.data = nullptr; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user