diff options
author | Joe George <joe@zeroc.com> | 2017-05-02 13:58:41 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2017-05-02 15:42:34 -0400 |
commit | cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9 (patch) | |
tree | 5dbc0bfc43e2c195ab7e7d819e1914611f943f1d /cpp/test/Ice/optional/StringView.h | |
parent | Removed trailing whitespace generated by slice2js (diff) | |
download | ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.bz2 ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.xz ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.zip |
Remove trailing whitespace
Diffstat (limited to 'cpp/test/Ice/optional/StringView.h')
-rw-r--r-- | cpp/test/Ice/optional/StringView.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/test/Ice/optional/StringView.h b/cpp/test/Ice/optional/StringView.h index f970f642b0d..b78fae1a06e 100644 --- a/cpp/test/Ice/optional/StringView.h +++ b/cpp/test/Ice/optional/StringView.h @@ -28,7 +28,7 @@ public: _data(0), _size(0) {} - + string_view(const string_view& sv) : _data(sv._data), _size(sv._size) @@ -71,7 +71,7 @@ public: { return _size != 0; } - + const char* data() const { return _data; @@ -85,7 +85,7 @@ public: std::string to_string() const { - return std::string(_data, _size); + return std::string(_data, _size); } int compare(string_view str) const @@ -110,19 +110,19 @@ public: return 1; } } - + private: const char* _data; size_t _size; }; -inline bool +inline bool operator==(string_view lhs, string_view rhs) { return lhs.compare(rhs) == 0; } -inline bool +inline bool operator!=(string_view lhs, string_view rhs) { return lhs.compare(rhs) != 0; @@ -163,7 +163,7 @@ struct StreamHelper<Util::string_view, StreamHelperCategoryBuiltin> #endif } - template<class S> static inline void + template<class S> static inline void read(S* stream, Util::string_view& v) { const char* vdata = 0; |