ladybird/Userland/Libraries/LibGfx/Triangle.cpp
Linus Groh 57dc179b1f Everywhere: Rename to_{string => deprecated_string}() where applicable
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.
2022-12-06 08:54:33 +01:00

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);
}
}