From 62b933b4402387379bd26a2d18ad3ded03fddfa4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 28 Dec 2015 19:56:30 +0300 Subject: utils: code style --- utils/decrypt_bmp.cpp | 4 ++-- utils/decrypt_file.cpp | 4 ++-- utils/encrypt_bmp.cpp | 4 ++-- utils/encrypt_file.cpp | 4 ++-- utils/file_cmd_parser.hpp | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'utils') diff --git a/utils/decrypt_bmp.cpp b/utils/decrypt_bmp.cpp index e63155d..dac042a 100644 --- a/utils/decrypt_bmp.cpp +++ b/utils/decrypt_bmp.cpp @@ -88,8 +88,8 @@ namespace const auto algorithm = settings.get_algorithm(); const auto mode = settings.get_mode(); - const auto ciphertext_path = settings.get_input_path(); - const auto plaintext_path = settings.get_output_path(); + const auto& ciphertext_path = settings.get_input_path(); + const auto& plaintext_path = settings.get_output_path(); aesni::Box::Key key; aesni::Box::parse_key(key, algorithm, settings.get_key_string()); diff --git a/utils/decrypt_file.cpp b/utils/decrypt_file.cpp index 2264926..dd95928 100644 --- a/utils/decrypt_file.cpp +++ b/utils/decrypt_file.cpp @@ -73,8 +73,8 @@ namespace const auto algorithm = settings.get_algorithm(); const auto mode = settings.get_mode(); - const auto ciphertext_path = settings.get_input_path(); - const auto plaintext_path = settings.get_output_path(); + const auto& ciphertext_path = settings.get_input_path(); + const auto& plaintext_path = settings.get_output_path(); aesni::Box::Key key; aesni::Box::parse_key(key, algorithm, settings.get_key_string()); diff --git a/utils/encrypt_bmp.cpp b/utils/encrypt_bmp.cpp index 3ac5906..2dc3ea5 100644 --- a/utils/encrypt_bmp.cpp +++ b/utils/encrypt_bmp.cpp @@ -88,8 +88,8 @@ namespace const auto algorithm = settings.get_algorithm(); const auto mode = settings.get_mode(); - const auto plaintext_path = settings.get_input_path(); - const auto ciphertext_path = settings.get_output_path(); + const auto& plaintext_path = settings.get_input_path(); + const auto& ciphertext_path = settings.get_output_path(); aesni::Box::Key key; aesni::Box::parse_key(key, algorithm, settings.get_key_string()); diff --git a/utils/encrypt_file.cpp b/utils/encrypt_file.cpp index 4651928..bde7d83 100644 --- a/utils/encrypt_file.cpp +++ b/utils/encrypt_file.cpp @@ -73,8 +73,8 @@ namespace const auto algorithm = settings.get_algorithm(); const auto mode = settings.get_mode(); - const auto plaintext_path = settings.get_input_path(); - const auto ciphertext_path = settings.get_output_path(); + const auto& plaintext_path = settings.get_input_path(); + const auto& ciphertext_path = settings.get_output_path(); aesni::Box::Key key; aesni::Box::parse_key(key, algorithm, settings.get_key_string()); diff --git a/utils/file_cmd_parser.hpp b/utils/file_cmd_parser.hpp index b6312f3..bc641ed 100644 --- a/utils/file_cmd_parser.hpp +++ b/utils/file_cmd_parser.hpp @@ -65,8 +65,8 @@ namespace ("help,h", "show this message and exit") ("mode,m", po::value(&settings.mode)->required(), "set mode of operation") ("algorithm,a", po::value(&settings.algorithm)->required(), "set algorithm") - ("input-path,i", po::value(&settings.input_path)->required(), "set input file") - ("output-path,o", po::value(&settings.output_path)->required(), "set output file") + ("input-path,i", po::value(&settings.input_path)->required(), "set input file path") + ("output-path,o", po::value(&settings.output_path)->required(), "set output file path") ("key,k", po::value(&settings.key)->required(), "set encryption key") ("iv,v", po::value(&settings.iv), "set initialization vector"); -- cgit v1.2.3