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:
Hermet Park 2021-06-02 16:38:21 +09:00
parent 54fa59e7c3
commit 2c37191584
2 changed files with 2 additions and 2 deletions

View file

@ -256,7 +256,7 @@ public:
* @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.

View file

@ -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;
return Result::InvalidArguments;