From be612cbab27967afcc60175ce78ea88b7108659e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 21 Jun 2016 19:51:34 +0300 Subject: fix GCC errors --- utils/encrypt_bmp.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'utils/encrypt_bmp.cpp') diff --git a/utils/encrypt_bmp.cpp b/utils/encrypt_bmp.cpp index 086e14d..67ec412 100644 --- a/utils/encrypt_bmp.cpp +++ b/utils/encrypt_bmp.cpp @@ -98,18 +98,14 @@ namespace { aes::Box::Block iv; aes::Box::parse_block(iv, algorithm, settings.get_iv_string()); + aes::Box box{ algorithm, key, mode, iv }; - encrypt_bmp( - aes::Box(algorithm, key, mode, iv), - plaintext_path, - ciphertext_path); + encrypt_bmp(box, plaintext_path, ciphertext_path); } else { - encrypt_bmp( - aes::Box(algorithm, key), - plaintext_path, - ciphertext_path); + aes::Box box{ algorithm, key }; + encrypt_bmp(box, plaintext_path, ciphertext_path); } } } -- cgit v1.2.3