Update const to align with the internal repo (#2281)

* Update to const function to align with the internal repo

* Remove redundant const
This commit is contained in:
hanzhang54 2025-01-23 15:02:07 +08:00 committed by GitHub
parent def60ac3a8
commit fa78446867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ namespace MockGraphingImpl
{
class Bitmap : public Graphing::IBitmap
{
virtual const std::vector<BYTE> GetData() const
virtual std::vector<BYTE> GetData() const
{
return std::vector<BYTE>();
}

View file

@ -29,7 +29,7 @@ namespace MockGraphingImpl
return std::nullopt;
}
HRESULT GetInitializationError()
HRESULT GetInitializationError() const
{
return S_OK;
}

View file

@ -9,6 +9,6 @@ namespace Graphing
{
struct IBitmap
{
virtual const std::vector<BYTE> GetData() const = 0;
virtual std::vector<BYTE> GetData() const = 0;
};
}

View file

@ -18,7 +18,7 @@ namespace Graphing
virtual std::optional<std::vector<std::shared_ptr<IEquation>>> TryInitialize(const IExpression* graphingExp = nullptr) = 0;
virtual HRESULT GetInitializationError() = 0;
virtual HRESULT GetInitializationError() const = 0;
virtual IGraphingOptions& GetOptions() = 0;