diff options
Diffstat (limited to 'googleurl/src/gurl.cc')
-rw-r--r-- | googleurl/src/gurl.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/googleurl/src/gurl.cc b/googleurl/src/gurl.cc index a0bfd26..3a1f2b9 100644 --- a/googleurl/src/gurl.cc +++ b/googleurl/src/gurl.cc @@ -148,6 +148,13 @@ GURL::GURL(const char* canonical_spec, size_t canonical_spec_len, #endif } +GURL& GURL::operator=(const GURL& other) { + spec_ = other.spec_; + is_valid_ = other.is_valid_; + parsed_ = other.parsed_; + return *this; +} + const std::string& GURL::spec() const { if (is_valid_ || spec_.empty()) return spec_; |