mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
refactor: Replace const char* to std::string
Some functions should be returning std::string instead of const char*. This commit changes that.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#ifndef BITCOIN_SCRIPT_SCRIPT_ERROR_H
|
||||
#define BITCOIN_SCRIPT_SCRIPT_ERROR_H
|
||||
|
||||
#include <string>
|
||||
|
||||
typedef enum ScriptError_t
|
||||
{
|
||||
SCRIPT_ERR_OK = 0,
|
||||
@@ -73,6 +75,6 @@ typedef enum ScriptError_t
|
||||
|
||||
#define SCRIPT_ERR_LAST SCRIPT_ERR_ERROR_COUNT
|
||||
|
||||
const char* ScriptErrorString(const ScriptError error);
|
||||
std::string ScriptErrorString(const ScriptError error);
|
||||
|
||||
#endif // BITCOIN_SCRIPT_SCRIPT_ERROR_H
|
||||
|
||||
Reference in New Issue
Block a user