From 304d00e5226a64707ec7ab74c06fd35a96e55389 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 27 Jul 2015 00:11:09 +0300 Subject: code style --- cxx/include/aesnixx/error.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'cxx/include/aesnixx/error.hpp') diff --git a/cxx/include/aesnixx/error.hpp b/cxx/include/aesnixx/error.hpp index 5366c0b..552f832 100644 --- a/cxx/include/aesnixx/error.hpp +++ b/cxx/include/aesnixx/error.hpp @@ -36,7 +36,7 @@ namespace aesni void for_each_in_call_stack(const std::function& callback) const { aux::CallStackFormatter formatter; - std::for_each(m_call_stack, m_call_stack + m_call_stack_size, [&formatter, &callback] (void* addr) + std::for_each(call_stack, call_stack + call_stack_size, [&formatter, &callback] (void* addr) { callback(addr, formatter.format(addr)); }); @@ -53,12 +53,12 @@ namespace aesni void copy_call_stack(const AesNI_ErrorDetails& err_details) { - m_call_stack_size = err_details.call_stack_size; - std::memcpy(m_call_stack, err_details.call_stack, m_call_stack_size * sizeof(void*)); + call_stack_size = err_details.call_stack_size; + std::memcpy(call_stack, err_details.call_stack, call_stack_size * sizeof(void*)); } - void* m_call_stack[AESNI_MAX_CALL_STACK_LENGTH]; - std::size_t m_call_stack_size; + void* call_stack[AESNI_MAX_CALL_STACK_LENGTH]; + std::size_t call_stack_size; }; std::ostream& operator<<(std::ostream& os, const Error& e) @@ -87,14 +87,14 @@ namespace aesni #endif { if (aesni_is_error(aesni_get_error_code(get()))) - throw Error(m_impl); + throw Error(impl); } - AesNI_ErrorDetails* get() { return &m_impl; } + AesNI_ErrorDetails* get() { return &impl; } operator AesNI_ErrorDetails*() { return get(); } private: - AesNI_ErrorDetails m_impl; + AesNI_ErrorDetails impl; }; } -- cgit v1.2.3