From d1f701ababe4e83f6c99328775513150773ceafa Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 27 Nov 2023 17:45:56 +0100 Subject: [PATCH] Fix getNearestFunctionSymbolData --- source/plugin/PluginInformation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/plugin/PluginInformation.h b/source/plugin/PluginInformation.h index 4282553..5a12cdf 100644 --- a/source/plugin/PluginInformation.h +++ b/source/plugin/PluginInformation.h @@ -93,7 +93,7 @@ public: return mTrampolineId; } - [[nodiscard]] std::optional getNearestFunctionSymbolData(uint32_t address) const { + [[nodiscard]] FunctionSymbolData *getNearestFunctionSymbolData(uint32_t address) const { FunctionSymbolData *result = nullptr; bool foundHit = false; @@ -107,10 +107,10 @@ public: } } if (!foundHit) { - return std::nullopt; + return nullptr; } - return *result; + return result; } [[nodiscard]] const HeapMemoryFixedSize &getTextMemory() const {