summaryrefslogtreecommitdiff
path: root/src/node_union_bytes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_union_bytes.h')
-rw-r--r--src/node_union_bytes.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/node_union_bytes.h b/src/node_union_bytes.h
index 33fada7303..0034f184cc 100644
--- a/src/node_union_bytes.h
+++ b/src/node_union_bytes.h
@@ -24,10 +24,14 @@ class NonOwningExternalOneByteResource
}
size_t length() const override { return length_; }
+ NonOwningExternalOneByteResource(const NonOwningExternalOneByteResource&) =
+ delete;
+ NonOwningExternalOneByteResource& operator=(
+ const NonOwningExternalOneByteResource&) = delete;
+
private:
const uint8_t* data_;
size_t length_;
- DISALLOW_COPY_AND_ASSIGN(NonOwningExternalOneByteResource);
};
class NonOwningExternalTwoByteResource
@@ -40,10 +44,14 @@ class NonOwningExternalTwoByteResource
const uint16_t* data() const override { return data_; }
size_t length() const override { return length_; }
+ NonOwningExternalTwoByteResource(const NonOwningExternalTwoByteResource&) =
+ delete;
+ NonOwningExternalTwoByteResource& operator=(
+ const NonOwningExternalTwoByteResource&) = delete;
+
private:
const uint16_t* data_;
size_t length_;
- DISALLOW_COPY_AND_ASSIGN(NonOwningExternalTwoByteResource);
};
// Similar to a v8::String, but it's independent from Isolates