susumu.yata
null+****@clear*****
Fri Jan 30 13:01:45 JST 2015
susumu.yata 2015-01-30 13:01:45 +0900 (Fri, 30 Jan 2015) New Revision: 033889a2de7d8d17bcd226d5c3e6f4ede8135766 https://github.com/groonga/groonga/commit/033889a2de7d8d17bcd226d5c3e6f4ede8135766 Message: Remove unused assignment operators To suppress the following warnings. ./storage/mroonga/vendor/groonga/lib/dat/dat.hpp:178: warning: ‘virtual grn::dat::Exception& grn::dat::Exception::operator=(const grn::dat::Exception&)’ was hidden ./storage/mroonga/vendor/groonga/lib/dat/dat.hpp:213: warning: by ‘grn::dat::Error<T>& grn::dat::Error<T>::operator=(const grn::dat::Error<T>&) Reported by Kentoku Shiba. Thanks!!! Modified files: lib/dat/dat.hpp Modified: lib/dat/dat.hpp (+0 -12) =================================================================== --- lib/dat/dat.hpp 2015-01-29 16:44:59 +0900 (a2b225a) +++ lib/dat/dat.hpp 2015-01-30 13:01:45 +0900 (d2b2264) @@ -175,13 +175,6 @@ class Exception : public std::exception { what_(ex.what_) {} virtual ~Exception() throw() {} - virtual Exception &operator=(const Exception &ex) throw() { - file_ = ex.file_; - line_ = ex.line_; - what_ = ex.what_; - return *this; - } - virtual ErrorCode code() const throw() = 0; virtual const char *file() const throw() { return file_; @@ -210,11 +203,6 @@ class Error : public Exception { : Exception(ex) {} virtual ~Error() throw() {} - virtual Error &operator=(const Error &ex) throw() { - *static_cast<Exception *>(this) = ex; - return *this; - } - virtual ErrorCode code() const throw() { return T; } -------------- next part -------------- HTML����������������������������... Télécharger