From e429d3f2905f1ba74d39a79d24eeefb408c8db92 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 29 Nov 2024 16:15:47 +0100 Subject: Replace default value of GitOpValue's result field by std::nullopt. --- src/other_tools/git_operations/git_ops_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/other_tools/git_operations') diff --git a/src/other_tools/git_operations/git_ops_types.hpp b/src/other_tools/git_operations/git_ops_types.hpp index f36c18c3..70553f04 100644 --- a/src/other_tools/git_operations/git_ops_types.hpp +++ b/src/other_tools/git_operations/git_ops_types.hpp @@ -68,7 +68,7 @@ struct GitOpValue { // used to continue with non-critical ops on same odb, if needed GitCASPtr git_cas{nullptr}; // stores result of certain operations; always nullopt if failure - std::optional result{""}; + std::optional result = std::nullopt; }; #endif // INCLUDED_SRC_OTHER_TOOLS_GIT_OPERATIONS_GIT_OPS_TYPES_HPP -- cgit v1.2.3