mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:02:46 +00:00 
			
		
		
		
	 57dc179b1f
			
		
	
	
		57dc179b1f
		
	
	
	
	
		
			
			This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Shannon Booth <shannon.ml.booth@gmail.com>
 | |
|  * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <AK/DeprecatedString.h>
 | |
| #include <LibGfx/Triangle.h>
 | |
| 
 | |
| namespace Gfx {
 | |
| 
 | |
| template<>
 | |
| DeprecatedString Triangle<int>::to_deprecated_string() const
 | |
| {
 | |
|     return DeprecatedString::formatted("({},{},{})", m_a, m_b, m_c);
 | |
| }
 | |
| 
 | |
| template<>
 | |
| DeprecatedString Triangle<float>::to_deprecated_string() const
 | |
| {
 | |
|     return DeprecatedString::formatted("({},{},{})", m_a, m_b, m_c);
 | |
| }
 | |
| 
 | |
| }
 |