diff options
author | Jack Lloyd <[email protected]> | 2019-06-19 18:13:57 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-06-19 18:13:57 -0400 |
commit | 938563c0d287ee1234e1728c44e81be287bed4d1 (patch) | |
tree | 393060c35500c8843f67c48780f67c80398bde76 /src/cli | |
parent | 19337fb7be51bb385df962bc389f5a13927dfa23 (diff) |
Fix some LGTM issues
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/argparse.h | 4 | ||||
-rw-r--r-- | src/cli/sandbox.h | 23 | ||||
-rw-r--r-- | src/cli/socket_utils.h | 4 | ||||
-rw-r--r-- | src/cli/speed.cpp | 1 |
4 files changed, 19 insertions, 13 deletions
diff --git a/src/cli/argparse.h b/src/cli/argparse.h index 2d940f32d..4df4a10c8 100644 --- a/src/cli/argparse.h +++ b/src/cli/argparse.h @@ -4,8 +4,8 @@ * Botan is released under the Simplified BSD License (see license.txt) */ -#ifndef BOTAN_ARGPARSE_H_ -#define BOTAN_ARGPARSE_H_ +#ifndef BOTAN_CLI_ARGPARSE_H_ +#define BOTAN_CLI_ARGPARSE_H_ #include <string> #include <map> diff --git a/src/cli/sandbox.h b/src/cli/sandbox.h index c719b8390..2d6f5c4df 100644 --- a/src/cli/sandbox.h +++ b/src/cli/sandbox.h @@ -4,7 +4,8 @@ * Botan is released under the Simplified BSD License (see license.txt) */ -#ifndef BOTAN_SANDBOX_H_ +#ifndef BOTAN_CLI_SANDBOX_H_ +#define BOTAN_CLI_SANDBOX_H_ #include <string> @@ -13,15 +14,19 @@ namespace Botan_CLI { class Sandbox { public: - explicit Sandbox(); - bool init(); - virtual ~Sandbox(); - const std::string& name() const - { - return m_name; - } + explicit Sandbox(); + virtual ~Sandbox(); + + bool init(); + + const std::string& name() const + { + return m_name; + } + private: - std::string m_name; + std::string m_name; }; } + #endif diff --git a/src/cli/socket_utils.h b/src/cli/socket_utils.h index d7eb4382e..7856f5508 100644 --- a/src/cli/socket_utils.h +++ b/src/cli/socket_utils.h @@ -5,8 +5,8 @@ * Botan is released under the Simplified BSD License (see license.txt) */ -#ifndef BOTAN_SOCKET_H_ -#define BOTAN_SOCKET_H_ +#ifndef BOTAN_CLI_SOCKET_UTILS_H_ +#define BOTAN_CLI_SOCKET_UTILS_H_ #include <botan/build.h> #include "cli_exceptions.h" diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index 9830c4f29..0b68d579f 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -510,6 +510,7 @@ class Speed final : public Command if(false) { + // Since everything might be disabled, need a block to else if from } #if defined(BOTAN_HAS_HASH) else if(Botan::HashFunction::providers(algo).size() > 0) |