[ox/oc] Add missing nodiscards
This commit is contained in:
		
							
								
								
									
										2
									
								
								deps/ox/src/ox/oc/write.hpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								deps/ox/src/ox/oc/write.hpp
									
									
									
									
										vendored
									
									
								
							@@ -76,10 +76,12 @@ class OrganicClawWriter {
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	private:
 | 
			
		||||
		[[nodiscard]]
 | 
			
		||||
		constexpr bool targetValid() noexcept {
 | 
			
		||||
			return static_cast<int>(m_fieldIt) == m_unionIdx || m_unionIdx == -1;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		[[nodiscard]]
 | 
			
		||||
		Json::Value &value(const char *key);
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user