diff options
| author | Jan Sucan <jan@jansucan.com> | 2025-01-27 11:40:25 +0100 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2025-01-27 15:22:36 +0100 |
| commit | aae2c5d151be25c1a480c2cbc2906412261f5674 (patch) | |
| tree | 308fe8165301e8fd5166cce78e48129890304e0d | |
| parent | 67cb1e0442a431fd07aa755fc390651d6986bd35 (diff) | |
Use camel case for a method name
| -rw-r--r-- | src/options.cpp | 6 | ||||
| -rw-r--r-- | src/options.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/options.cpp b/src/options.cpp index ee1d8a2..8ad510c 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -169,7 +169,7 @@ Parser::parseCreate(int argc, char **argv) /* Convert numbers in the arguments */ if ((arg_buffer_size != NULL) && - parse_unsigned(arg_buffer_size, &(opts.m_buffer_size))) { + parseUnsigned(arg_buffer_size, &(opts.m_buffer_size))) { throw Error("incorrect buffer size"); } else if (opts.m_buffer_size == 0) { throw Error("buffer size cannot be 0"); @@ -231,7 +231,7 @@ Parser::parseRestore(int argc, char **argv) /* Convert numbers in the arguments */ if ((arg_buffer_size != NULL) && - parse_unsigned(arg_buffer_size, &(opts.m_buffer_size))) { + parseUnsigned(arg_buffer_size, &(opts.m_buffer_size))) { throw Error("incorrect buffer size"); } else if (opts.m_buffer_size == 0) { throw Error("buffer size cannot be 0"); @@ -259,7 +259,7 @@ Parser::isOperation(int argc, char **argv, std::string_view operationName) } int -Parser::parse_unsigned(const char *const arg, uint32_t *const value) +Parser::parseUnsigned(const char *const arg, uint32_t *const value) { char *end; diff --git a/src/options.h b/src/options.h index 4aa359a..60c90d7 100644 --- a/src/options.h +++ b/src/options.h @@ -96,7 +96,7 @@ class Parser static bool isOperation(int argc, char **argv, std::string_view operationName); - static int parse_unsigned(const char *const arg, uint32_t *const value); + static int parseUnsigned(const char *const arg, uint32_t *const value); }; } // namespace Options |
