Commit Graph

8226 Commits

Author SHA1 Message Date
Luis Díaz Más
02b0541bbf
Merge pull request #2130 from neheb/1
misc stuff
2022-03-07 10:45:59 +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
f0d23eca9b clang-tidy: add some missing operators
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-06 01:17:12 -08:00
Rosen Penev
daf7c890e2 misc stuff
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-06 01:17:12 -08:00
Luis Díaz Más
206514f002
Merge pull request #2125 from neheb/1
some clang-tidy
2022-03-06 08:51:09 +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
95355fe214 clang-tidy: remove C casts
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 16:21:26 -08:00
Rosen Penev
8cda090e58 clang-tidy: get rid of compare() usage
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 16:21:26 -08:00
Rosen Penev
63e41c3aeb clang-tidy: simplify bool
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 16:21:26 -08:00
Rosen Penev
133849c394 clang-tidy: remove pointless get()
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 16:21:26 -08: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
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
e6d3315160 clang-tidy: use emplace_back
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 01:10:01 -08:00
Rosen Penev
77e79b32f5 manual braced init conversion
clang-tidy's not converting these for some reason.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-05 01:07:36 -08:00
Luis Díaz Más
88b1c96aee
Merge pull request #2124 from neheb/1
mostly clang-tidy cleanups
2022-03-05 09:57:40 +01: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
3a2309bfea clang-tidy: replace typedef with using
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
887b08b0b7 clang-tidy: range loop conversion
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -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
Rosen Penev
a5c094b85f clang-tidy: use concat namespaces
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
118aa78aa0 clang-tidy: use braced init list
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
f65848a590 simplify ReplaceStringInPlace slightly
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
5d60a91ebc move initializations to class
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-04 15:54:05 -08:00
Rosen Penev
a67e0d525f move namespace fs below includes
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
5ca423d292
Merge pull request #2118 from Exiv2/main_NewDelete
Refactoring & Cleanup (Moving to size_t usage & less naked new/deletes)
2022-03-04 08:23:46 +01:00
Peter
30a1609838
Add tag website build text to README.md (#2113) 2022-03-03 15:06:47 +00:00
Luis Díaz Más
a5b6db171c
Merge pull request #1919 from dimin/viqi
fix for reading jpeg-xr images
2022-02-28 09:42:43 +01:00
Luis Díaz Más
ac9b9e2c95
Merge pull request #2071 from Sturmflut/nikon-improve-lens-docs
[nikon] Add instructions for adding new Nikon F mount lenses
2022-02-28 09:34:16 +01:00
Luis Díaz Más
208ec70df8 Fix windows builds 2022-02-27 13:48:21 +01:00
Luis Díaz Más
e07c3771da Fix more issues found by fuzzer 2022-02-27 12:42:08 +01:00
Luis Díaz Más
12738214f2 Fix warnings and place return statements separated from if 2022-02-27 11:57:53 +01:00
Luis Díaz Más
f6b17d2a4d Fix issues found by fuzzer 2022-02-27 11:57:24 +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
615ccff5ab Fix another case revealed by tests 2022-02-27 09:36:46 +01:00
Luis Díaz Más
6e50714726 Replace c style arrays by std::array 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
2505e52345 Avoid naked new operator in sample apps 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