Skip to content

Commit

Permalink
rename as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielschulhof committed Jun 6, 2023
1 parent e544c89 commit 29bf3ab
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/js_native_api_v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@ class ExternalOneByteStringResource
: public v8::String::ExternalOneByteStringResource {
public:
ExternalOneByteStringResource(const char* string, const size_t length)
: _string(string), _length(length) {}
const char* data() const { return _string; }
size_t length() const { return _length; }
: string_(string), length_(length) {}
const char* data() const { return string_; }
size_t length() const { return length_; }

private:
const char* _string;
const size_t _length;
const char* string_;
const size_t length_;
};

class ExternalStringResource : public v8::String::ExternalStringResource {
public:
ExternalStringResource(const uint16_t* string, const size_t length)
: _string(string), _length(length) {}
const uint16_t* data() const { return _string; }
size_t length() const { return _length; }
: string_(string), length_(length) {}
const uint16_t* data() const { return string_; }
size_t length() const { return length_; }

private:
const uint16_t* _string;
const size_t _length;
const uint16_t* string_;
const size_t length_;
};

template <typename CCharType, typename StringMaker>
Expand Down

0 comments on commit 29bf3ab

Please sign in to comment.