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 {