mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -1,5 +1,4 @@
|
|||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=2 et sw=2 tw=80: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
@ -8,7 +7,6 @@
|
|||
#define databuffer_h__
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
|
@ -24,7 +22,6 @@ class DataBuffer {
|
|||
DataBuffer(const DataBuffer& other) : data_(nullptr), len_(0) {
|
||||
Assign(other);
|
||||
}
|
||||
explicit DataBuffer(size_t l) : data_(nullptr), len_(0) { Allocate(l); }
|
||||
~DataBuffer() { delete[] data_; }
|
||||
|
||||
DataBuffer& operator=(const DataBuffer& other) {
|
||||
|
|
@ -33,16 +30,6 @@ class DataBuffer {
|
|||
}
|
||||
return *this;
|
||||
}
|
||||
DataBuffer& operator=(DataBuffer&& other) {
|
||||
if (this != &other) {
|
||||
delete[] data_;
|
||||
data_ = other.data_;
|
||||
len_ = other.len_;
|
||||
other.data_ = nullptr;
|
||||
other.len_ = 0;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Allocate(size_t l) {
|
||||
delete[] data_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue