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
Luis Díaz Más
85d6082d7f
Should fix build in some Linux distros
2022-03-08 11:21:24 +01:00
Rosen Penev
c2bcd4b08e
replace EXV_COUNTOF with std::size
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-08 00:26:33 -08:00
Luis Díaz Más
f156af46f3
Fix build on Windows
2022-03-07 22:25:51 +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
8b1fe379a1
Removing unused headers thanks to IWYU
2022-03-07 22:25:47 +01:00
Luis Díaz Más
ffb5cdf721
Merge pull request #2127 from neheb/21
...
use make_unsigned_t
2022-03-07 08:45:19 +01:00
Rosen Penev
09e0ea83f6
use make_unsigned_t
...
Simpler
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 23:35:48 -08:00
Rosen Penev
def782fb65
replace several typedefs with using
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 17:49:22 -08:00
Rosen Penev
5833101b9b
manual nullptr conversions
...
Mostly not caught because I'm not running clang-tidy on Windows.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 16:21:25 -08:00
Rosen Penev
a25bbe133f
constexpr string conversions
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
ae3e28c62a
make array constexpr
...
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:03 -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
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
7dea0050b1
Factor out duplicated piece of code
2022-02-27 09:36:46 +01:00
Luis Díaz Más
5d627433fc
Remove useless DataBuf::clear()
2022-02-27 09:36:46 +01:00
Luis Díaz Más
3a749e6861
No need to define copy & move ctors
2022-02-27 09:36:46 +01:00
Luis Díaz Más
2bacff0f5c
Simplify DataBuf
2022-02-27 09:36:46 +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
aec36f86d7
Replace naked new operators
2022-02-27 09:36:46 +01:00
Luis Díaz Más
c5a9dfd9af
Merge pull request #2109 from Exiv2/main_StringView
...
Refactoring & cleanup
2022-02-21 22:29:43 +01:00
Luis Díaz Más
8b3da36f42
Improvements from code review
2022-02-19 17:27:29 +01:00
Kevin Backhouse
a7ce4ee846
Move Metadatum::toUint32() implementation out of header file.
2022-02-19 13:38:46 +00:00
Kevin Backhouse
90aa007188
Convert type of pixelHeight/pixelWidth to platform-independent uint32_t.
2022-02-18 22:17:32 +00:00
Luis Díaz Más
f774a3b25e
Fix build on linux
2022-02-18 22:48:01 +01:00
Luis Díaz Más
9fb43f28e0
Use standard [[maybe_unused]]
2022-02-18 22:48:01 +01:00
Luis Díaz Más
76f01fd4d3
Clean more header inclusions
2022-02-18 22:48:01 +01:00
Luis Díaz Más
f060b58fd4
Clean config.h from old stuff
2022-02-18 22:48:01 +01:00
Luis Díaz Más
7e5ba7cb23
Remove many redundant or not needed header inclusions
2022-02-18 19:01:24 +01:00
Luis Díaz Más
a6185d29c6
Image::setComment now takes string_view
2022-02-18 18:01:02 +01:00
Luis Díaz Más
8b2d17312e
ReplaceStringInPlace does it in-place now
2022-02-18 17:54:04 +01:00
Luis Díaz Más
45300ad667
BasicIo::path() returns const ref
2022-02-18 17:54:04 +01:00
Luis Díaz Más
0726104b1a
Hide pathOfFileUrl in the only place where it is used
2022-02-18 17:54:04 +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
f1ff3aaa4c
Make urldecode in-place
2022-02-18 17:54:04 +01:00
Luis Díaz Más
3d370cc2ae
Improvements in urlencode
2022-02-18 17:54:04 +01:00
Kevin Backhouse
256365830a
Replace Metadatum::toLong() with Metadatum::toInt64().
2022-02-18 12:30:33 +00:00
Luis Díaz Más
408d80bce8
Change order of ImageType values
2022-02-14 17:08:50 +01:00
Luis Díaz Más
690dde3440
Add tests for ImageFactory::checkMode (for all the supported image types)
2022-02-14 17:08:50 +01:00
Luis Díaz Más
f10283f118
bug: Fix crash when calling ImageFactory::create(none)
2022-02-14 17:08:50 +01:00
Luis Díaz Más
5a9799ffb2
Replace ImageType namespace by a enum class
2022-02-14 17:08:50 +01:00
Luis Díaz Más
7933ff401d
Remove dead code around EXV_UNICODE_PATH
2022-02-13 22:49:32 +01:00
Kevin Backhouse
2a3dd2def9
Replace Value::toLong with Value::toInt64. ( #2062 )
...
* Replace Value::toLong with Value::toInt64.
* Fix compiler warning.
* Fix compile error.
* Fix declaration of canonEv
* Fix compiler warning.
* Fix compiler warning.
* Use int64_t for offsets in tiffcomposite_int.cpp
* Fix compiler warning.
* Fix compiler warnings.
* Fix compiler warning.
* Fix compiler warning.
* Fix compiler warning.
* Fix compiler warning.
* Remove static_cast<long int> in TagDetails initializer.
2022-02-12 21:16:18 +00:00
Luis Díaz Más
1f07715141
Revert "Delete dead code"
...
This reverts commit 1d6bac61f2 .
2022-02-08 07:57:22 +01:00
Luis Díaz Más
d8732a716e
Remove dead code
2022-02-05 11:02:04 +01:00
Luis Díaz Más
9d8dd86945
Use auto to reduce verbosity around code dealing with iterators
2022-02-05 11:02:03 +01:00