mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
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);
|
|
}
|
|
|
|
}
|