Rosen Penev
2e721a716e
std::function conversions
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-18 13:02:32 -07:00
Rosen Penev
d466c1e9eb
minor clang-tidy fixes ( #2213 )
...
* clang-tidy: add const to member function
Signed-off-by: Rosen Penev <rosenp@gmail.com>
* clang-tidy: remove duplicate access specifier
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-16 11:29:15 +02:00
Rosen Penev
3a8a8b29a2
std::pair conversion
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-14 18:06:04 -07:00
Rosen Penev
a8061e7ee9
clang-tidy: default member init
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-14 18:01:55 -07:00
Luis Díaz Más
f942ba89bd
Move Photoshopb class to internal namespace
2022-04-10 10:55:10 +02:00
Rosen Penev
fafe999c6e
remove unused var from deleted stuff
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-31 08:47:37 +02:00
Rosen Penev
043547cbd0
remove various usages of memset
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-27 01:47:02 -07:00
Luis Díaz Más
d7f35e33f0
Remove useless static_casts
2022-03-25 08:43:37 +01:00
Luis Díaz Más
ae4df71233
Remove DataBuf::copyBytes and use std::copy instead
2022-03-23 17:17:29 +01:00
Luis Díaz Más
c5c315b6e7
Usage of EXIT_SUCCESS/FAILURE instead of hard-coded values
2022-03-23 16:55:18 +01:00
Luis Díaz Más
b05573fadc
Remove most of the asserts from codebase
2022-03-23 16:55:18 +01:00
Luis Díaz Más
734b909721
Help for formatting enums & arrays with clang-format
2022-03-23 16:55:18 +01:00
Luis Díaz Más
1bf7f44f53
Rename variables for better readability
2022-03-23 16:55:18 +01:00
Luis Díaz Más
30bf563f4d
Update .clang-format file & apply clang-format to whole project
2022-03-16 22:30:53 +01:00
Rosen Penev
b2b6d834ba
some std::array conversions ( #2148 )
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-15 10:17:06 +01:00
Luis Diaz
7576a2757b
More size_t for sizes
2022-03-14 11:50:42 +01:00
Luis Díaz Más
7119b7676f
remove templating & simplify error message
...
+ clang-format in Error files
+ Remove AnyError
2022-03-12 16:58:41 +01:00
Luis Díaz Más
96f7f2e4c5
Convert Exiv2::ErrorCode into an enum class
2022-03-12 16:58:40 +01:00
Luis Díaz Más
c115d4daf7
Merge pull request #2131 from Exiv2/mainCleanups
...
Include what you use + more SPDX identifiers + few other cleanups
2022-03-11 21:02:45 +01:00
Rosen Penev
8dadcdf72a
manual nullptr removals
...
unique_ptr has a bool overload. It's also easier to reason about.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-09 17:12:29 -08:00
Luis Díaz Más
85d6082d7f
Should fix build in some Linux distros
2022-03-08 11:21:24 +01:00
Luis Díaz Más
cca6f74200
windows.h
2022-03-08 10:07:25 +01:00
Luis Díaz Más
5a6ec65315
Use SPDX identifiers in more files
2022-03-07 22:25:51 +01:00
Luis Díaz Más
b3a216310a
Removing unused headers thanks to IWYU
2022-03-07 22:25:51 +01:00
Luis Díaz Más
5508e6f466
hexdump to size_t
2022-03-07 22:25:51 +01:00
Luis Díaz Más
3f3b651c04
Remove unused stuff
2022-03-07 22:25:35 +01:00
Luis Díaz Más
867132f7c7
_fileno is only for Windows
2022-03-07 22:25:35 +01:00
Luis Díaz Más
23da0c3955
Do not define not needed stuff
2022-03-07 22:25:35 +01:00
Rosen Penev
6d1fa2ecea
clang-tidy: use empty() instead of size()
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 16:21:26 -08:00
Rosen Penev
04bacdedd6
clang-tidy: use auto
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
962e3b7369
clang-tidy: use default
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Luis Díaz Más
b17828b454
Use SPDX for licenses ( #2122 )
...
* Use SPDX identifier in header files
* Use SPDX identifier in rest of source files
* Fix usage of SPDX for files with 2 licenses
* Add global license file
* Fix compilation
2022-03-04 11:44:39 +01:00
Luis Díaz Más
208ec70df8
Fix windows builds
2022-02-27 13:48:21 +01:00
Luis Díaz Más
b9f9d041ea
Several transformations on DataBuf + migration to size_t
...
- Provide begin/end iterators to DataBuf and simplify code
- Adapt test output after last changes
- Replacing long by size_t in value.hpp
- Use size_t in some Photoshop functions
- Remove some static_casts
2022-02-27 09:41:47 +01:00
Luis Díaz Más
f1e04ee866
Replace DataBuf internal buffer with std::vector
2022-02-27 09:36:46 +01:00
Luis Díaz Más
b3517a6ab0
Build hash table in place
2022-02-27 09:36:46 +01:00
Luis Díaz Más
06ff936d06
Replace dynamic array for std::vector
2022-02-27 09:36:46 +01:00
Luis Díaz Más
67f574556e
Hide member variable
2022-02-27 09:36:46 +01:00
Luis Díaz Más
4163236e72
Implement Params singleton in modern C++ way
2022-02-27 09:36:46 +01:00
Luis Díaz Más
a357596a2e
Move params construction to the .cpp file
2022-02-27 09:36:46 +01:00
Luis Díaz Más
7caf4090b1
Use fs::file_size instead of stat
2022-02-18 22:48:01 +01:00
Luis Díaz Más
59f4d0de27
cppcheck: reduce scope of variables
2022-02-18 18:01:02 +01:00
Luis Díaz Más
ea201ce613
Remove dead code
2022-02-18 18:01:02 +01:00
Luis Díaz Más
56b5ab9a29
Use remove from filesystem
2022-02-18 18:01:02 +01:00
Luis Díaz Más
9b3a643d33
Use rename from filesystem
2022-02-18 18:00:55 +01:00
Luis Díaz Más
6f762b4e66
Use std::filesystem for fileExist
2022-02-18 17:54:04 +01:00
Luis Díaz Más
f5c89a4e62
Fix build on Windows
2022-02-18 13:51:38 +01:00
Luis Díaz Más
405f4b5f1b
Remove Util::dirname and finally the util files
2022-02-18 13:51:38 +01:00
Luis Díaz Más
1b912fa887
get rid of suffix
2022-02-18 13:51:38 +01:00
Luis Díaz Más
d64c2aad67
Replace dirname implementation with std::filesystem
2022-02-18 13:51:38 +01:00