🚨 fixed some clang-tidy warnings
This commit is contained in:
		
							parent
							
								
									fa722d5ac3
								
							
						
					
					
						commit
						858e75c4df
					
				
					 29 changed files with 214 additions and 204 deletions
				
			
		|  | @ -21,5 +21,5 @@ template<typename BasicJsonType> struct internal_iterator | |||
|     /// generic iterator for all other types
 | ||||
|     primitive_iterator_t primitive_iterator {}; | ||||
| }; | ||||
| } | ||||
| } | ||||
| }  // namespace detail
 | ||||
| }  // namespace nlohmann
 | ||||
|  |  | |||
|  | @ -610,5 +610,5 @@ class iter_impl | |||
|     /// the actual iterator of the associated instance
 | ||||
|     internal_iterator<typename std::remove_const<BasicJsonType>::type> m_it; | ||||
| }; | ||||
| } | ||||
| } | ||||
| }  // namespace detail
 | ||||
| }  // namespace nlohmann
 | ||||
|  |  | |||
|  | @ -39,9 +39,6 @@ template<typename IteratorType> class iteration_proxy | |||
|       public: | ||||
|         explicit iteration_proxy_internal(IteratorType it) noexcept : anchor(it) {} | ||||
| 
 | ||||
|         iteration_proxy_internal(const iteration_proxy_internal&) = default; | ||||
|         iteration_proxy_internal& operator=(const iteration_proxy_internal&) = default; | ||||
| 
 | ||||
|         /// dereference operator (needed for range-based for)
 | ||||
|         iteration_proxy_internal& operator*() | ||||
|         { | ||||
|  | @ -124,5 +121,5 @@ template<typename IteratorType> class iteration_proxy | |||
|         return iteration_proxy_internal(container.end()); | ||||
|     } | ||||
| }; | ||||
| } | ||||
| } | ||||
| }  // namespace detail
 | ||||
| }  // namespace nlohmann
 | ||||
|  |  | |||
|  | @ -115,5 +115,5 @@ class json_reverse_iterator : public std::reverse_iterator<Base> | |||
|         return it.operator * (); | ||||
|     } | ||||
| }; | ||||
| } | ||||
| } | ||||
| }  // namespace detail
 | ||||
| }  // namespace nlohmann
 | ||||
|  |  | |||
|  | @ -116,5 +116,5 @@ class primitive_iterator_t | |||
|         return *this; | ||||
|     } | ||||
| }; | ||||
| } | ||||
| } | ||||
| }  // namespace detail
 | ||||
| }  // namespace nlohmann
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue