From f2a6ed115afe8d79437d78db922de04a892ad9b1 Mon Sep 17 00:00:00 2001 From: Han Zhang Date: Thu, 23 Jan 2025 13:16:32 +0800 Subject: [PATCH] Update to const function to align with the internal repo --- src/GraphingImpl/Mocks/Graph.h | 2 +- src/GraphingInterfaces/IGraph.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GraphingImpl/Mocks/Graph.h b/src/GraphingImpl/Mocks/Graph.h index 8624d92d..3678074c 100644 --- a/src/GraphingImpl/Mocks/Graph.h +++ b/src/GraphingImpl/Mocks/Graph.h @@ -29,7 +29,7 @@ namespace MockGraphingImpl return std::nullopt; } - HRESULT GetInitializationError() + HRESULT GetInitializationError() const { return S_OK; } diff --git a/src/GraphingInterfaces/IGraph.h b/src/GraphingInterfaces/IGraph.h index c19c7d80..4a2e134d 100644 --- a/src/GraphingInterfaces/IGraph.h +++ b/src/GraphingInterfaces/IGraph.h @@ -18,7 +18,7 @@ namespace Graphing virtual std::optional>> TryInitialize(const IExpression* graphingExp = nullptr) = 0; - virtual HRESULT GetInitializationError() = 0; + virtual HRESULT GetInitializationError() const = 0; virtual IGraphingOptions& GetOptions() = 0;