mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
api: --inproper const syntax.
compoiste() requires internal data change, its api syntax should not contain "const" though this changes the api spec, but won't affect build break since it allows wider usage. @API Modification from: Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) const noexcept to: Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) noexcept
This commit is contained in:
parent
54fa59e7c3
commit
2c37191584
2 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ public:
|
||||||
* @return Result::Success when succeed, Result::InvalidArguments otherwise.
|
* @return Result::Success when succeed, Result::InvalidArguments otherwise.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Result composite(std::unique_ptr<Paint> target, CompositeMethod method) const noexcept;
|
Result composite(std::unique_ptr<Paint> target, CompositeMethod method) noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the bounding box of the paint object before any transformation.
|
* @brief Gets the bounding box of the paint object before any transformation.
|
||||||
|
|
|
@ -295,7 +295,7 @@ Paint* Paint::duplicate() const noexcept
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) const noexcept
|
Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) noexcept
|
||||||
{
|
{
|
||||||
if (pImpl->composite(target.release(), method)) return Result::Success;
|
if (pImpl->composite(target.release(), method)) return Result::Success;
|
||||||
return Result::InvalidArguments;
|
return Result::InvalidArguments;
|
||||||
|
|
Loading…
Add table
Reference in a new issue