diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/apache/avro/api | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/apache/avro/api')
-rw-r--r-- | contrib/libs/apache/avro/api/NodeConcepts.hh | 14 | ||||
-rw-r--r-- | contrib/libs/apache/avro/api/Validator.hh | 14 | ||||
-rw-r--r-- | contrib/libs/apache/avro/api/buffer/BufferReader.hh | 2 | ||||
-rw-r--r-- | contrib/libs/apache/avro/api/buffer/detail/BufferDetail.hh | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/contrib/libs/apache/avro/api/NodeConcepts.hh b/contrib/libs/apache/avro/api/NodeConcepts.hh index fc4faebe3e..e914d925b6 100644 --- a/contrib/libs/apache/avro/api/NodeConcepts.hh +++ b/contrib/libs/apache/avro/api/NodeConcepts.hh @@ -56,14 +56,14 @@ struct NoAttribute return 0; } - void add( const Attribute &) { + void add( const Attribute &) { // There must be an add function for the generic NodeImpl, but the // Node APIs ensure that it is never called, the throw here is // just in case throw Exception("This type does not have attribute"); } - const Attribute &get(size_t = 0) const { + const Attribute &get(size_t = 0) const { // There must be an get function for the generic NodeImpl, but the // Node APIs ensure that it is never called, the throw here is // just in case @@ -73,7 +73,7 @@ struct NoAttribute return empty; } - Attribute &get(size_t = 0) { + Attribute &get(size_t = 0) { // There must be an get function for the generic NodeImpl, but the // Node APIs ensure that it is never called, the throw here is // just in case @@ -97,7 +97,7 @@ struct SingleAttribute { } // copy constructing from a no attribute is allowed - SingleAttribute(const NoAttribute<Attribute> &) : + SingleAttribute(const NoAttribute<Attribute> &) : attr_() { } @@ -150,7 +150,7 @@ struct MultiAttribute attrs_(rhs.attrs_) { } - MultiAttribute(const NoAttribute<Attribute> &) + MultiAttribute(const NoAttribute<Attribute> &) {} size_t size() const { @@ -178,12 +178,12 @@ struct MultiAttribute template<typename T> struct NameIndexConcept { - bool lookup(const std::string &, size_t &) const { + bool lookup(const std::string &, size_t &) const { throw Exception("Name index does not exist"); return 0; } - bool add(const::std::string &, size_t) { + bool add(const::std::string &, size_t) { throw Exception("Name index does not exist"); return false; } diff --git a/contrib/libs/apache/avro/api/Validator.hh b/contrib/libs/apache/avro/api/Validator.hh index c04b9fe3ec..3f542d611a 100644 --- a/contrib/libs/apache/avro/api/Validator.hh +++ b/contrib/libs/apache/avro/api/Validator.hh @@ -33,12 +33,12 @@ class AVRO_DECL NullValidator : private boost::noncopyable { public: - explicit NullValidator(const ValidSchema &) {} + explicit NullValidator(const ValidSchema &) {} NullValidator() {} - void setCount(int64_t) {} + void setCount(int64_t) {} - bool typeIsExpected(Type) const { + bool typeIsExpected(Type) const { return true; } @@ -50,16 +50,16 @@ class AVRO_DECL NullValidator : private boost::noncopyable return 0; } - bool getCurrentRecordName(std::string &) const { + bool getCurrentRecordName(std::string &) const { return true; } - bool getNextFieldName(std::string &) const { + bool getNextFieldName(std::string &) const { return true; } - void checkTypeExpected(Type) { } - void checkFixedSizeExpected(int) { } + void checkTypeExpected(Type) { } + void checkFixedSizeExpected(int) { } }; diff --git a/contrib/libs/apache/avro/api/buffer/BufferReader.hh b/contrib/libs/apache/avro/api/buffer/BufferReader.hh index 68163911ed..83b6b4b324 100644 --- a/contrib/libs/apache/avro/api/buffer/BufferReader.hh +++ b/contrib/libs/apache/avro/api/buffer/BufferReader.hh @@ -254,7 +254,7 @@ class AVRO_DECL BufferReader : private boost::noncopyable /// An uninstantiable function, that is if boost::is_fundamental check fails template<typename T> - bool read(T &, const std::false_type&) + bool read(T &, const std::false_type&) { static_assert(sizeof(T) == 0, "Not a valid type to read"); return false; diff --git a/contrib/libs/apache/avro/api/buffer/detail/BufferDetail.hh b/contrib/libs/apache/avro/api/buffer/detail/BufferDetail.hh index 27cb5e6cd1..29a2e00b4e 100644 --- a/contrib/libs/apache/avro/api/buffer/detail/BufferDetail.hh +++ b/contrib/libs/apache/avro/api/buffer/detail/BufferDetail.hh @@ -364,7 +364,7 @@ class BufferImpl : boost::noncopyable /// An uninstantiable function, this is if boost::is_fundamental check fails, /// and will compile-time assert. template<typename T> - void writeTo(T, const std::false_type&) + void writeTo(T, const std::false_type&) { BOOST_STATIC_ASSERT(sizeof(T)==0); } |