aboutsummaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan.zalega@gmail.com>2016-03-05 15:50:53 +0100
committerSzczepan Zalega <szczepan.zalega@gmail.com>2016-03-05 15:50:53 +0100
commit27434dc0e877845cbfb229c5154c342107866fd5 (patch)
tree7b0739b206ffcecb757083f16318326667b7c36c /include/command.h
parent4c511bc53788ada875fd0221b1cc3d4f8b269f91 (diff)
downloadlibnitrokey-27434dc0e877845cbfb229c5154c342107866fd5.tar.gz
libnitrokey-27434dc0e877845cbfb229c5154c342107866fd5.tar.bz2
formatted code with clang-format-3.6 with style=google
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/command.h b/include/command.h
index 6a3e8b4..715902d 100644
--- a/include/command.h
+++ b/include/command.h
@@ -7,19 +7,16 @@
namespace nitrokey {
namespace proto {
-template <CommandID cmd_id>
+template <CommandID cmd_id>
class Command : semantics::non_constructible {
-public:
- constexpr static CommandID command_id() {
- return cmd_id;
- }
+ public:
+ constexpr static CommandID command_id() { return cmd_id; }
- template<typename T>
- static std::string dissect(const T &) {
- return std::string("Payload dissection is unavailable");
- }
+ template <typename T>
+ static std::string dissect(const T &) {
+ return std::string("Payload dissection is unavailable");
+ }
};
-
}
}